Documentation ¶
Index ¶
- Constants
- func LeafRedundancyModes() []string
- func NewAccessSwitchMap(ctx context.Context, in []apstra.RackElementAccessSwitch, ...) types.Map
- func NewDesignTemplateSpineObject(ctx context.Context, in *apstra.Spine, diags *diag.Diagnostics) types.Object
- func NewEsiLagInfo(ctx context.Context, in *apstra.EsiLagInfo, diags *diag.Diagnostics) types.Object
- func NewGenericSystemMap(ctx context.Context, in []apstra.RackElementGenericSystem, ...) types.Map
- func NewInterfaceMapInterfaceSet(ctx context.Context, in []apstra.InterfaceMapInterface, ...) types.Set
- func NewInterfaceMapMappingObject(ctx context.Context, in *apstra.InterfaceMapMapping, diags *diag.Diagnostics) types.Object
- func NewLeafSwitchMap(ctx context.Context, in []apstra.RackElementLeafSwitch, ...) types.Map
- func NewLinkMap(ctx context.Context, in []apstra.RackLink, diags *diag.Diagnostics) types.Map
- func NewLogicalDeviceObject(ctx context.Context, in *apstra.LogicalDeviceData, diags *diag.Diagnostics) types.Object
- func NewLogicalDevicePanelList(ctx context.Context, in []apstra.LogicalDevicePanel, diags *diag.Diagnostics) types.List
- func NewMlagInfoObject(ctx context.Context, in *apstra.LeafMlagInfo, diags *diag.Diagnostics) types.Object
- func NewRackInfoMap(ctx context.Context, in *apstra.TemplateRackBasedData, diags *diag.Diagnostics) types.Map
- func NewRackTypeObject(ctx context.Context, in *apstra.RackTypeData, diags *diag.Diagnostics) types.Object
- func NewTagSet(ctx context.Context, in []apstra.DesignTagData, diags *diag.Diagnostics) types.Set
- func ValidateAccessSwitch(rt *apstra.RackType, i int, diags *diag.Diagnostics)
- func ValidateConfigletGenerator() validator.Object
- func ValidateFcdSupport(_ context.Context, fcd apstra.FabricConnectivityDesign, ...)
- func ValidateGenericSystem(rt *apstra.RackType, i int, diags *diag.Diagnostics)
- func ValidateLeafSwitch(rt *apstra.RackType, i int, diags *diag.Diagnostics)
- func ValidateRackType(ctx context.Context, in *apstra.RackType, diags *diag.Diagnostics)
- type AccessSwitch
- func (o AccessSwitch) AttrTypes() map[string]attr.Type
- func (o *AccessSwitch) CopyWriteOnlyElements(ctx context.Context, src *AccessSwitch, diags *diag.Diagnostics)
- func (o AccessSwitch) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *AccessSwitch) GetLinks(ctx context.Context, diags *diag.Diagnostics) map[string]RackLink
- func (o *AccessSwitch) LoadApiData(ctx context.Context, in *apstra.RackElementAccessSwitch, ...)
- func (o *AccessSwitch) Request(ctx context.Context, path path.Path, rack *RackType, diags *diag.Diagnostics) *apstra.RackElementAccessSwitchRequest
- func (o AccessSwitch) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o AccessSwitch) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type Configlet
- func (o Configlet) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *Configlet) LoadApiData(ctx context.Context, in *apstra.ConfigletData, diags *diag.Diagnostics)
- func (o *Configlet) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.ConfigletData
- func (o Configlet) ResourceAttributes() map[string]resourceSchema.Attribute
- type ConfigletGenerator
- func (o ConfigletGenerator) AttrTypes() map[string]attr.Type
- func (o ConfigletGenerator) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
- func (o *ConfigletGenerator) LoadApiData(ctx context.Context, in *apstra.ConfigletGenerator, diags *diag.Diagnostics)
- func (o *ConfigletGenerator) Request(_ context.Context, diags *diag.Diagnostics) *apstra.ConfigletGenerator
- func (o ConfigletGenerator) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type ConfigletGeneratorValidator
- type EsiLagInfo
- func (o EsiLagInfo) AttrTypes() map[string]attr.Type
- func (o EsiLagInfo) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *EsiLagInfo) LoadApiData(_ context.Context, in *apstra.EsiLagInfo, _ *diag.Diagnostics)
- func (o *EsiLagInfo) Request(_ context.Context, diags *diag.Diagnostics) *apstra.EsiLagInfo
- func (o EsiLagInfo) ResourceAttributes() map[string]resourceSchema.Attribute
- type GenericSystem
- func (o GenericSystem) AttrTypes() map[string]attr.Type
- func (o *GenericSystem) CopyWriteOnlyElements(ctx context.Context, src *GenericSystem, diags *diag.Diagnostics)
- func (o GenericSystem) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *GenericSystem) GetLinks(ctx context.Context, diags *diag.Diagnostics) map[string]RackLink
- func (o *GenericSystem) LoadApiData(ctx context.Context, in *apstra.RackElementGenericSystem, ...)
- func (o *GenericSystem) Request(ctx context.Context, path path.Path, rack *RackType, diags *diag.Diagnostics) *apstra.RackElementGenericSystemRequest
- func (o GenericSystem) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o GenericSystem) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type InterfaceMap
- type InterfaceMapInterface
- type InterfaceMapMapping
- type LeafSwitch
- func (o LeafSwitch) AttrTypes() map[string]attr.Type
- func (o *LeafSwitch) CopyWriteOnlyElements(ctx context.Context, src *LeafSwitch, diags *diag.Diagnostics)
- func (o LeafSwitch) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *LeafSwitch) LoadApiData(ctx context.Context, in *apstra.RackElementLeafSwitch, ...)
- func (o *LeafSwitch) Request(ctx context.Context, path path.Path, fcd apstra.FabricConnectivityDesign, ...) *apstra.RackElementLeafSwitchRequest
- func (o LeafSwitch) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o LeafSwitch) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type LogicalDevice
- func (o LogicalDevice) AttrTypes() map[string]attr.Type
- func (o LogicalDevice) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o LogicalDevice) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
- func (o *LogicalDevice) GetPanels(ctx context.Context, diags *diag.Diagnostics) []LogicalDevicePanel
- func (o *LogicalDevice) LoadApiData(ctx context.Context, in *apstra.LogicalDeviceData, diags *diag.Diagnostics)
- func (o *LogicalDevice) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.LogicalDeviceData
- func (o LogicalDevice) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o LogicalDevice) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type LogicalDevicePanel
- func (o LogicalDevicePanel) AttrTypes() map[string]attr.Type
- func (o LogicalDevicePanel) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *LogicalDevicePanel) GetPortGroups(ctx context.Context, diags *diag.Diagnostics) []LogicalDevicePanelPortGroup
- func (o *LogicalDevicePanel) LoadApiData(ctx context.Context, in *apstra.LogicalDevicePanel, diags *diag.Diagnostics)
- func (o *LogicalDevicePanel) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.LogicalDevicePanel
- func (o LogicalDevicePanel) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o LogicalDevicePanel) ResourceAttributesReadOnly() map[string]resourceSchema.Attribute
- func (o *LogicalDevicePanel) Validate(ctx context.Context, i int, diags *diag.Diagnostics)
- type LogicalDevicePanelPortGroup
- func (o LogicalDevicePanelPortGroup) AttrTypes() map[string]attr.Type
- func (o LogicalDevicePanelPortGroup) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *LogicalDevicePanelPortGroup) LoadApiData(ctx context.Context, in *apstra.LogicalDevicePortGroup, ...)
- func (o LogicalDevicePanelPortGroup) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o LogicalDevicePanelPortGroup) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type MlagInfo
- func (o MlagInfo) AttrTypes() map[string]attr.Type
- func (o MlagInfo) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *MlagInfo) LoadApiData(_ context.Context, in *apstra.LeafMlagInfo, diags *diag.Diagnostics)
- func (o *MlagInfo) Request(_ context.Context, diags *diag.Diagnostics) *apstra.LeafMlagInfo
- func (o MlagInfo) ResourceAttributes() map[string]resourceSchema.Attribute
- type PropertySet
- func (o PropertySet) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *PropertySet) LoadApiData(ctx context.Context, in *apstra.PropertySetData, diags *diag.Diagnostics)
- func (o *PropertySet) Request(_ context.Context, _ *diag.Diagnostics) *apstra.PropertySetData
- func (o PropertySet) ResourceAttributes() map[string]resourceSchema.Attribute
- type RackLink
- func (o RackLink) AttrTypes() map[string]attr.Type
- func (o *RackLink) CopyWriteOnlyElements(ctx context.Context, src *RackLink, diags *diag.Diagnostics)
- func (o RackLink) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *RackLink) LinkAttachmentType(upstreamRedundancyMode fmt.Stringer, _ *diag.Diagnostics) apstra.RackLinkAttachmentType
- func (o *RackLink) LoadApiData(ctx context.Context, in *apstra.RackLink, diags *diag.Diagnostics)
- func (o *RackLink) Request(ctx context.Context, path path.Path, rack *RackType, diags *diag.Diagnostics) *apstra.RackLinkRequest
- func (o RackLink) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o RackLink) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type RackType
- func (o RackType) AttrTypes() map[string]attr.Type
- func (o *RackType) CopyWriteOnlyElements(ctx context.Context, src *RackType, diags *diag.Diagnostics)
- func (o RackType) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o RackType) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
- func (o *RackType) GetAccessSwitchByName(ctx context.Context, requested string, diags *diag.Diagnostics) *AccessSwitch
- func (o *RackType) GetAccessSwitches(ctx context.Context, diags *diag.Diagnostics) map[string]AccessSwitch
- func (o *RackType) GetFabricConnectivityDesign(_ context.Context, diags *diag.Diagnostics) apstra.FabricConnectivityDesign
- func (o *RackType) GetGenericSystemByName(ctx context.Context, requested string, diags *diag.Diagnostics) *GenericSystem
- func (o *RackType) GetGenericSystems(ctx context.Context, diags *diag.Diagnostics) map[string]GenericSystem
- func (o *RackType) GetLeafSwitchByName(ctx context.Context, requested string, diags *diag.Diagnostics) *LeafSwitch
- func (o *RackType) GetLeafSwitches(ctx context.Context, diags *diag.Diagnostics) map[string]LeafSwitch
- func (o *RackType) GetSwitchRedundancyProtocolByName(ctx context.Context, name string, path path.Path, diags *diag.Diagnostics) fmt.Stringer
- func (o *RackType) LoadApiData(ctx context.Context, in *apstra.RackTypeData, diags *diag.Diagnostics)
- func (o *RackType) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.RackTypeRequest
- func (o RackType) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o RackType) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type Spine
- func (o Spine) AttrTypes() map[string]attr.Type
- func (o *Spine) CopyWriteOnlyElements(ctx context.Context, src *Spine, diags *diag.Diagnostics)
- func (o Spine) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *Spine) LoadApiData(ctx context.Context, in *apstra.Spine, diags *diag.Diagnostics)
- func (o *Spine) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.TemplateElementSpineRequest
- func (o Spine) ResourceAttributes() map[string]resourceSchema.Attribute
- type Tag
- func (o Tag) AttrTypes() map[string]attr.Type
- func (o Tag) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o Tag) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
- func (o *Tag) LoadApiData(ctx context.Context, in *apstra.DesignTagData, diags *diag.Diagnostics)
- func (o *Tag) Request(_ context.Context, _ *diag.Diagnostics) *apstra.DesignTagRequest
- func (o Tag) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o Tag) ResourceAttributesNested() map[string]resourceSchema.Attribute
- type TemplateRackBased
- func (o TemplateRackBased) AttrTypes() map[string]attr.Type
- func (o *TemplateRackBased) CopyWriteOnlyElements(ctx context.Context, src *TemplateRackBased, diags *diag.Diagnostics)
- func (o TemplateRackBased) DataSourceAttributes() map[string]dataSourceSchema.Attribute
- func (o *TemplateRackBased) LoadApiData(ctx context.Context, in *apstra.TemplateRackBasedData, diags *diag.Diagnostics)
- func (o *TemplateRackBased) MinMaxApiVersions(_ context.Context, diags *diag.Diagnostics) (*version.Version, *version.Version)
- func (o *TemplateRackBased) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.CreateRackBasedTemplateRequest
- func (o TemplateRackBased) ResourceAttributes() map[string]resourceSchema.Attribute
- func (o *TemplateRackBased) Validate(ctx context.Context, diags *diag.Diagnostics)
- type TemplateRackInfo
- func (o TemplateRackInfo) AttrTypes() map[string]attr.Type
- func (o TemplateRackInfo) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
- func (o *TemplateRackInfo) LoadApiData(ctx context.Context, in *apstra.TemplateRackBasedRackInfo, ...)
- func (o TemplateRackInfo) ResourceAttributesNested() map[string]resourceSchema.Attribute
Constants ¶
View Source
const ( AlphaNumericChars = "[A-Za-z0-9_-]" AlphaNumericRegexp = "^" + AlphaNumericChars + "*$" AsnAllocationSingle = "single" AsnAllocationUnique = "unique" OverlayControlProtocolEvpn = "evpn" OverlayControlProtocolStatic = "static" VlanMin = 1 VlanMax = 4094 )
Variables ¶
This section is empty.
Functions ¶
func LeafRedundancyModes ¶
func LeafRedundancyModes() []string
LeafRedundancyModes returns permitted fabric_connectivity_design mode strings
func NewAccessSwitchMap ¶
func NewAccessSwitchMap(ctx context.Context, in []apstra.RackElementAccessSwitch, diags *diag.Diagnostics) types.Map
func NewEsiLagInfo ¶
func NewEsiLagInfo(ctx context.Context, in *apstra.EsiLagInfo, diags *diag.Diagnostics) types.Object
func NewGenericSystemMap ¶
func NewGenericSystemMap(ctx context.Context, in []apstra.RackElementGenericSystem, diags *diag.Diagnostics) types.Map
func NewInterfaceMapInterfaceSet ¶
func NewInterfaceMapInterfaceSet(ctx context.Context, in []apstra.InterfaceMapInterface, diags *diag.Diagnostics) types.Set
func NewInterfaceMapMappingObject ¶
func NewInterfaceMapMappingObject(ctx context.Context, in *apstra.InterfaceMapMapping, diags *diag.Diagnostics) types.Object
func NewLeafSwitchMap ¶
func NewLeafSwitchMap(ctx context.Context, in []apstra.RackElementLeafSwitch, fcd apstra.FabricConnectivityDesign, diags *diag.Diagnostics) types.Map
func NewLinkMap ¶
func NewLogicalDeviceObject ¶
func NewLogicalDeviceObject(ctx context.Context, in *apstra.LogicalDeviceData, diags *diag.Diagnostics) types.Object
func NewLogicalDevicePanelList ¶
func NewLogicalDevicePanelList(ctx context.Context, in []apstra.LogicalDevicePanel, diags *diag.Diagnostics) types.List
func NewMlagInfoObject ¶
func NewMlagInfoObject(ctx context.Context, in *apstra.LeafMlagInfo, diags *diag.Diagnostics) types.Object
func NewRackInfoMap ¶
func NewRackInfoMap(ctx context.Context, in *apstra.TemplateRackBasedData, diags *diag.Diagnostics) types.Map
func NewRackTypeObject ¶
func NewRackTypeObject(ctx context.Context, in *apstra.RackTypeData, diags *diag.Diagnostics) types.Object
func NewTagSet ¶
func NewTagSet(ctx context.Context, in []apstra.DesignTagData, diags *diag.Diagnostics) types.Set
func ValidateAccessSwitch ¶
func ValidateAccessSwitch(rt *apstra.RackType, i int, diags *diag.Diagnostics)
func ValidateFcdSupport ¶
func ValidateFcdSupport(_ context.Context, fcd apstra.FabricConnectivityDesign, diags *diag.Diagnostics)
func ValidateGenericSystem ¶
func ValidateGenericSystem(rt *apstra.RackType, i int, diags *diag.Diagnostics)
func ValidateLeafSwitch ¶
func ValidateLeafSwitch(rt *apstra.RackType, i int, diags *diag.Diagnostics)
func ValidateRackType ¶
Types ¶
type AccessSwitch ¶
type AccessSwitch struct { LogicalDeviceId types.String `tfsdk:"logical_device_id"` LogicalDevice types.Object `tfsdk:"logical_device"` EsiLagInfo types.Object `tfsdk:"esi_lag_info"` RedundancyProtocol types.String `tfsdk:"redundancy_protocol"` Count types.Int64 `tfsdk:"count"` Links types.Map `tfsdk:"links"` TagIds types.Set `tfsdk:"tag_ids"` Tags types.Set `tfsdk:"tags"` }
func (*AccessSwitch) CopyWriteOnlyElements ¶
func (o *AccessSwitch) CopyWriteOnlyElements(ctx context.Context, src *AccessSwitch, diags *diag.Diagnostics)
func (AccessSwitch) DataSourceAttributes ¶
func (o AccessSwitch) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*AccessSwitch) GetLinks ¶
func (o *AccessSwitch) GetLinks(ctx context.Context, diags *diag.Diagnostics) map[string]RackLink
func (*AccessSwitch) LoadApiData ¶
func (o *AccessSwitch) LoadApiData(ctx context.Context, in *apstra.RackElementAccessSwitch, diags *diag.Diagnostics)
func (*AccessSwitch) Request ¶
func (o *AccessSwitch) Request(ctx context.Context, path path.Path, rack *RackType, diags *diag.Diagnostics) *apstra.RackElementAccessSwitchRequest
func (AccessSwitch) ResourceAttributes ¶
func (o AccessSwitch) ResourceAttributes() map[string]resourceSchema.Attribute
func (AccessSwitch) ResourceAttributesNested ¶
func (o AccessSwitch) ResourceAttributesNested() map[string]resourceSchema.Attribute
type Configlet ¶
type Configlet struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Generators types.List `tfsdk:"generators"` }
func (Configlet) DataSourceAttributes ¶
func (o Configlet) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*Configlet) LoadApiData ¶
func (o *Configlet) LoadApiData(ctx context.Context, in *apstra.ConfigletData, diags *diag.Diagnostics)
func (*Configlet) Request ¶
func (o *Configlet) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.ConfigletData
func (Configlet) ResourceAttributes ¶
func (o Configlet) ResourceAttributes() map[string]resourceSchema.Attribute
type ConfigletGenerator ¶
type ConfigletGenerator struct { ConfigStyle types.String `tfsdk:"config_style"` Section types.String `tfsdk:"section"` TemplateText types.String `tfsdk:"template_text"` NegationTemplateText types.String `tfsdk:"negation_template_text"` FileName types.String `tfsdk:"filename"` }
func (ConfigletGenerator) DataSourceAttributesNested ¶
func (o ConfigletGenerator) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
func (*ConfigletGenerator) LoadApiData ¶
func (o *ConfigletGenerator) LoadApiData(ctx context.Context, in *apstra.ConfigletGenerator, diags *diag.Diagnostics)
func (*ConfigletGenerator) Request ¶
func (o *ConfigletGenerator) Request(_ context.Context, diags *diag.Diagnostics) *apstra.ConfigletGenerator
func (ConfigletGenerator) ResourceAttributesNested ¶
func (o ConfigletGenerator) ResourceAttributesNested() map[string]resourceSchema.Attribute
type ConfigletGeneratorValidator ¶
type ConfigletGeneratorValidator struct { }
func (ConfigletGeneratorValidator) Description ¶
func (o ConfigletGeneratorValidator) Description(_ context.Context) string
func (ConfigletGeneratorValidator) MarkdownDescription ¶
func (o ConfigletGeneratorValidator) MarkdownDescription(ctx context.Context) string
func (ConfigletGeneratorValidator) ValidateObject ¶
func (o ConfigletGeneratorValidator) ValidateObject(ctx context.Context, req validator.ObjectRequest, resp *validator.ObjectResponse)
type EsiLagInfo ¶
type EsiLagInfo struct { L3PeerLinkCount types.Int64 `tfsdk:"l3_peer_link_count"` L3PeerLinkSpeed types.String `tfsdk:"l3_peer_link_speed"` }
func (EsiLagInfo) DataSourceAttributes ¶
func (o EsiLagInfo) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*EsiLagInfo) LoadApiData ¶
func (o *EsiLagInfo) LoadApiData(_ context.Context, in *apstra.EsiLagInfo, _ *diag.Diagnostics)
func (*EsiLagInfo) Request ¶
func (o *EsiLagInfo) Request(_ context.Context, diags *diag.Diagnostics) *apstra.EsiLagInfo
func (EsiLagInfo) ResourceAttributes ¶
func (o EsiLagInfo) ResourceAttributes() map[string]resourceSchema.Attribute
type GenericSystem ¶
type GenericSystem struct { LogicalDeviceId types.String `tfsdk:"logical_device_id"` LogicalDevice types.Object `tfsdk:"logical_device"` PortChannelIdMin types.Int64 `tfsdk:"port_channel_id_min"` PortChannelIdMax types.Int64 `tfsdk:"port_channel_id_max"` Count types.Int64 `tfsdk:"count"` Links types.Map `tfsdk:"links"` TagIds types.Set `tfsdk:"tag_ids"` Tags types.Set `tfsdk:"tags"` }
func (*GenericSystem) CopyWriteOnlyElements ¶
func (o *GenericSystem) CopyWriteOnlyElements(ctx context.Context, src *GenericSystem, diags *diag.Diagnostics)
func (GenericSystem) DataSourceAttributes ¶
func (o GenericSystem) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*GenericSystem) GetLinks ¶
func (o *GenericSystem) GetLinks(ctx context.Context, diags *diag.Diagnostics) map[string]RackLink
func (*GenericSystem) LoadApiData ¶
func (o *GenericSystem) LoadApiData(ctx context.Context, in *apstra.RackElementGenericSystem, diags *diag.Diagnostics)
func (*GenericSystem) Request ¶
func (o *GenericSystem) Request(ctx context.Context, path path.Path, rack *RackType, diags *diag.Diagnostics) *apstra.RackElementGenericSystemRequest
func (GenericSystem) ResourceAttributes ¶
func (o GenericSystem) ResourceAttributes() map[string]resourceSchema.Attribute
func (GenericSystem) ResourceAttributesNested ¶
func (o GenericSystem) ResourceAttributesNested() map[string]resourceSchema.Attribute
type InterfaceMap ¶
type InterfaceMap struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` LogicalDevice types.String `tfsdk:"logical_device_id"` DeviceProfile types.String `tfsdk:"device_profile_id"` Interfaces types.Set `tfsdk:"interfaces"` }
func (InterfaceMap) DataSourceAttributes ¶
func (o InterfaceMap) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*InterfaceMap) LoadApiData ¶
func (o *InterfaceMap) LoadApiData(ctx context.Context, in *apstra.InterfaceMapData, diags *diag.Diagnostics)
type InterfaceMapInterface ¶
type InterfaceMapInterface struct { Name types.String `tfsdk:"name"` Roles types.Set `tfsdk:"roles"` Mapping types.Object `tfsdk:"mapping"` Active types.Bool `tfsdk:"active"` Position types.Int64 `tfsdk:"position"` Speed types.String `tfsdk:"speed"` Setting types.String `tfsdk:"setting"` }
func (InterfaceMapInterface) AttrTypes ¶
func (o InterfaceMapInterface) AttrTypes() map[string]attr.Type
func (InterfaceMapInterface) DataSourceSchema ¶
func (o InterfaceMapInterface) DataSourceSchema() map[string]dataSourceSchema.Attribute
func (*InterfaceMapInterface) LoadApiData ¶
func (o *InterfaceMapInterface) LoadApiData(ctx context.Context, in *apstra.InterfaceMapInterface, diags *diag.Diagnostics)
type InterfaceMapMapping ¶
type InterfaceMapMapping struct { DPPort types.Int64 `tfsdk:"device_profile_port_id"` DPTransform types.Int64 `tfsdk:"device_profile_transformation_id"` DPInterface types.Int64 `tfsdk:"device_profile_interface_id"` LDPanel types.Int64 `tfsdk:"logical_device_panel"` LDPort types.Int64 `tfsdk:"logical_device_panel_port"` }
func (InterfaceMapMapping) AttrTypes ¶
func (o InterfaceMapMapping) AttrTypes() map[string]attr.Type
func (InterfaceMapMapping) DataSourceAttributes ¶
func (o InterfaceMapMapping) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*InterfaceMapMapping) LoadApiData ¶
func (o *InterfaceMapMapping) LoadApiData(_ context.Context, in *apstra.InterfaceMapMapping, _ *diag.Diagnostics)
type LeafSwitch ¶
type LeafSwitch struct { LogicalDeviceId types.String `tfsdk:"logical_device_id"` LogicalDevice types.Object `tfsdk:"logical_device"` MlagInfo types.Object `tfsdk:"mlag_info"` RedundancyProtocol types.String `tfsdk:"redundancy_protocol"` SpineLinkCount types.Int64 `tfsdk:"spine_link_count"` SpineLinkSpeed types.String `tfsdk:"spine_link_speed"` TagIds types.Set `tfsdk:"tag_ids"` Tags types.Set `tfsdk:"tags"` }
func (*LeafSwitch) CopyWriteOnlyElements ¶
func (o *LeafSwitch) CopyWriteOnlyElements(ctx context.Context, src *LeafSwitch, diags *diag.Diagnostics)
func (LeafSwitch) DataSourceAttributes ¶
func (o LeafSwitch) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*LeafSwitch) LoadApiData ¶
func (o *LeafSwitch) LoadApiData(ctx context.Context, in *apstra.RackElementLeafSwitch, fcd apstra.FabricConnectivityDesign, diags *diag.Diagnostics)
func (*LeafSwitch) Request ¶
func (o *LeafSwitch) Request(ctx context.Context, path path.Path, fcd apstra.FabricConnectivityDesign, diags *diag.Diagnostics) *apstra.RackElementLeafSwitchRequest
func (LeafSwitch) ResourceAttributes ¶
func (o LeafSwitch) ResourceAttributes() map[string]resourceSchema.Attribute
func (LeafSwitch) ResourceAttributesNested ¶
func (o LeafSwitch) ResourceAttributesNested() map[string]resourceSchema.Attribute
type LogicalDevice ¶
type LogicalDevice struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Panels types.List `tfsdk:"panels"` }
func (LogicalDevice) DataSourceAttributes ¶
func (o LogicalDevice) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (LogicalDevice) DataSourceAttributesNested ¶
func (o LogicalDevice) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
func (*LogicalDevice) GetPanels ¶
func (o *LogicalDevice) GetPanels(ctx context.Context, diags *diag.Diagnostics) []LogicalDevicePanel
func (*LogicalDevice) LoadApiData ¶
func (o *LogicalDevice) LoadApiData(ctx context.Context, in *apstra.LogicalDeviceData, diags *diag.Diagnostics)
func (*LogicalDevice) Request ¶
func (o *LogicalDevice) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.LogicalDeviceData
func (LogicalDevice) ResourceAttributes ¶
func (o LogicalDevice) ResourceAttributes() map[string]resourceSchema.Attribute
func (LogicalDevice) ResourceAttributesNested ¶
func (o LogicalDevice) ResourceAttributesNested() map[string]resourceSchema.Attribute
type LogicalDevicePanel ¶
type LogicalDevicePanel struct { Rows types.Int64 `tfsdk:"rows"` Columns types.Int64 `tfsdk:"columns"` PortGroups types.List `tfsdk:"port_groups"` }
func (LogicalDevicePanel) DataSourceAttributes ¶
func (o LogicalDevicePanel) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*LogicalDevicePanel) GetPortGroups ¶
func (o *LogicalDevicePanel) GetPortGroups(ctx context.Context, diags *diag.Diagnostics) []LogicalDevicePanelPortGroup
func (*LogicalDevicePanel) LoadApiData ¶
func (o *LogicalDevicePanel) LoadApiData(ctx context.Context, in *apstra.LogicalDevicePanel, diags *diag.Diagnostics)
func (*LogicalDevicePanel) Request ¶
func (o *LogicalDevicePanel) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.LogicalDevicePanel
func (LogicalDevicePanel) ResourceAttributes ¶
func (o LogicalDevicePanel) ResourceAttributes() map[string]resourceSchema.Attribute
func (LogicalDevicePanel) ResourceAttributesReadOnly ¶
func (o LogicalDevicePanel) ResourceAttributesReadOnly() map[string]resourceSchema.Attribute
func (*LogicalDevicePanel) Validate ¶
func (o *LogicalDevicePanel) Validate(ctx context.Context, i int, diags *diag.Diagnostics)
type LogicalDevicePanelPortGroup ¶
type LogicalDevicePanelPortGroup struct { PortCount types.Int64 `tfsdk:"port_count"` PortSpeed types.String `tfsdk:"port_speed"` PortRoles types.Set `tfsdk:"port_roles"` }
func (LogicalDevicePanelPortGroup) AttrTypes ¶
func (o LogicalDevicePanelPortGroup) AttrTypes() map[string]attr.Type
func (LogicalDevicePanelPortGroup) DataSourceAttributes ¶
func (o LogicalDevicePanelPortGroup) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*LogicalDevicePanelPortGroup) LoadApiData ¶
func (o *LogicalDevicePanelPortGroup) LoadApiData(ctx context.Context, in *apstra.LogicalDevicePortGroup, diags *diag.Diagnostics)
func (LogicalDevicePanelPortGroup) ResourceAttributes ¶
func (o LogicalDevicePanelPortGroup) ResourceAttributes() map[string]resourceSchema.Attribute
func (LogicalDevicePanelPortGroup) ResourceAttributesNested ¶
func (o LogicalDevicePanelPortGroup) ResourceAttributesNested() map[string]resourceSchema.Attribute
type MlagInfo ¶
type MlagInfo struct { MlagKeepaliveVLan types.Int64 `tfsdk:"mlag_keepalive_vlan"` PeerLinkCount types.Int64 `tfsdk:"peer_link_count"` PeerLinkSpeed types.String `tfsdk:"peer_link_speed"` PeerLinkPortChannelId types.Int64 `tfsdk:"peer_link_port_channel_id"` L3PeerLinkCount types.Int64 `tfsdk:"l3_peer_link_count"` L3PeerLinkSpeed types.String `tfsdk:"l3_peer_link_speed"` L3PeerLinkPortChannelId types.Int64 `tfsdk:"l3_peer_link_port_channel_id"` }
func (MlagInfo) DataSourceAttributes ¶
func (o MlagInfo) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*MlagInfo) LoadApiData ¶
func (o *MlagInfo) LoadApiData(_ context.Context, in *apstra.LeafMlagInfo, diags *diag.Diagnostics)
func (*MlagInfo) Request ¶
func (o *MlagInfo) Request(_ context.Context, diags *diag.Diagnostics) *apstra.LeafMlagInfo
func (MlagInfo) ResourceAttributes ¶
func (o MlagInfo) ResourceAttributes() map[string]resourceSchema.Attribute
type PropertySet ¶
type PropertySet struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Data types.String `tfsdk:"data"` Blueprints types.Set `tfsdk:"blueprints"` Keys types.Set `tfsdk:"keys"` }
func (PropertySet) DataSourceAttributes ¶
func (o PropertySet) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*PropertySet) LoadApiData ¶
func (o *PropertySet) LoadApiData(ctx context.Context, in *apstra.PropertySetData, diags *diag.Diagnostics)
func (*PropertySet) Request ¶
func (o *PropertySet) Request(_ context.Context, _ *diag.Diagnostics) *apstra.PropertySetData
func (PropertySet) ResourceAttributes ¶
func (o PropertySet) ResourceAttributes() map[string]resourceSchema.Attribute
type RackLink ¶
type RackLink struct { TargetSwitchName types.String `tfsdk:"target_switch_name"` LagMode types.String `tfsdk:"lag_mode"` LinksPerSwitch types.Int64 `tfsdk:"links_per_switch"` Speed types.String `tfsdk:"speed"` SwitchPeer types.String `tfsdk:"switch_peer"` TagIds types.Set `tfsdk:"tag_ids"` Tags types.Set `tfsdk:"tags"` }
func (*RackLink) CopyWriteOnlyElements ¶
func (RackLink) DataSourceAttributes ¶
func (o RackLink) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*RackLink) LinkAttachmentType ¶
func (o *RackLink) LinkAttachmentType(upstreamRedundancyMode fmt.Stringer, _ *diag.Diagnostics) apstra.RackLinkAttachmentType
func (*RackLink) LoadApiData ¶
func (*RackLink) Request ¶
func (o *RackLink) Request(ctx context.Context, path path.Path, rack *RackType, diags *diag.Diagnostics) *apstra.RackLinkRequest
func (RackLink) ResourceAttributes ¶
func (o RackLink) ResourceAttributes() map[string]resourceSchema.Attribute
func (RackLink) ResourceAttributesNested ¶
func (o RackLink) ResourceAttributesNested() map[string]resourceSchema.Attribute
type RackType ¶
type RackType struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` FabricConnectivityDesign types.String `tfsdk:"fabric_connectivity_design"` LeafSwitches types.Map `tfsdk:"leaf_switches"` AccessSwitches types.Map `tfsdk:"access_switches"` GenericSystems types.Map `tfsdk:"generic_systems"` }
func (*RackType) CopyWriteOnlyElements ¶
func (o *RackType) CopyWriteOnlyElements(ctx context.Context, src *RackType, diags *diag.Diagnostics)
CopyWriteOnlyElements copies elements (IDs of nested design API objects) from 'src' (plan or state - something which knows these facts) into 'o' a RackType to be used as state.
func (RackType) DataSourceAttributes ¶
func (o RackType) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (RackType) DataSourceAttributesNested ¶
func (o RackType) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
func (*RackType) GetAccessSwitchByName ¶
func (o *RackType) GetAccessSwitchByName(ctx context.Context, requested string, diags *diag.Diagnostics) *AccessSwitch
func (*RackType) GetAccessSwitches ¶
func (o *RackType) GetAccessSwitches(ctx context.Context, diags *diag.Diagnostics) map[string]AccessSwitch
func (*RackType) GetFabricConnectivityDesign ¶
func (o *RackType) GetFabricConnectivityDesign(_ context.Context, diags *diag.Diagnostics) apstra.FabricConnectivityDesign
func (*RackType) GetGenericSystemByName ¶
func (o *RackType) GetGenericSystemByName(ctx context.Context, requested string, diags *diag.Diagnostics) *GenericSystem
func (*RackType) GetGenericSystems ¶
func (o *RackType) GetGenericSystems(ctx context.Context, diags *diag.Diagnostics) map[string]GenericSystem
func (*RackType) GetLeafSwitchByName ¶
func (o *RackType) GetLeafSwitchByName(ctx context.Context, requested string, diags *diag.Diagnostics) *LeafSwitch
func (*RackType) GetLeafSwitches ¶
func (o *RackType) GetLeafSwitches(ctx context.Context, diags *diag.Diagnostics) map[string]LeafSwitch
func (*RackType) GetSwitchRedundancyProtocolByName ¶
func (*RackType) LoadApiData ¶
func (o *RackType) LoadApiData(ctx context.Context, in *apstra.RackTypeData, diags *diag.Diagnostics)
func (*RackType) Request ¶
func (o *RackType) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.RackTypeRequest
func (RackType) ResourceAttributes ¶
func (o RackType) ResourceAttributes() map[string]resourceSchema.Attribute
func (RackType) ResourceAttributesNested ¶
func (o RackType) ResourceAttributesNested() map[string]resourceSchema.Attribute
type Spine ¶
type Spine struct { LogicalDeviceId types.String `tfsdk:"logical_device_id"` LogicalDevice types.Object `tfsdk:"logical_device"` Count types.Int64 `tfsdk:"count"` SuperSpineLinkSpeed types.String `tfsdk:"super_spine_link_speed"` SuperSpineLinkCount types.Int64 `tfsdk:"super_spine_link_count"` TagIds types.Set `tfsdk:"tag_ids"` Tags types.Set `tfsdk:"tags"` }
func (*Spine) CopyWriteOnlyElements ¶
func (Spine) DataSourceAttributes ¶
func (o Spine) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*Spine) LoadApiData ¶
func (*Spine) Request ¶
func (o *Spine) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.TemplateElementSpineRequest
func (Spine) ResourceAttributes ¶
func (o Spine) ResourceAttributes() map[string]resourceSchema.Attribute
type Tag ¶
type Tag struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Description types.String `tfsdk:"description"` }
func (Tag) DataSourceAttributes ¶
func (o Tag) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (Tag) DataSourceAttributesNested ¶
func (o Tag) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
func (*Tag) LoadApiData ¶
func (o *Tag) LoadApiData(ctx context.Context, in *apstra.DesignTagData, diags *diag.Diagnostics)
func (*Tag) Request ¶
func (o *Tag) Request(_ context.Context, _ *diag.Diagnostics) *apstra.DesignTagRequest
func (Tag) ResourceAttributes ¶
func (o Tag) ResourceAttributes() map[string]resourceSchema.Attribute
func (Tag) ResourceAttributesNested ¶
func (o Tag) ResourceAttributesNested() map[string]resourceSchema.Attribute
type TemplateRackBased ¶
type TemplateRackBased struct { Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` Spine types.Object `tfsdk:"spine"` AsnAllocation types.String `tfsdk:"asn_allocation_scheme"` OverlayControlProtocol types.String `tfsdk:"overlay_control_protocol"` FabricAddressing types.String `tfsdk:"fabric_link_addressing"` RackInfos types.Map `tfsdk:"rack_infos"` }
func (*TemplateRackBased) CopyWriteOnlyElements ¶
func (o *TemplateRackBased) CopyWriteOnlyElements(ctx context.Context, src *TemplateRackBased, diags *diag.Diagnostics)
func (TemplateRackBased) DataSourceAttributes ¶
func (o TemplateRackBased) DataSourceAttributes() map[string]dataSourceSchema.Attribute
func (*TemplateRackBased) LoadApiData ¶
func (o *TemplateRackBased) LoadApiData(ctx context.Context, in *apstra.TemplateRackBasedData, diags *diag.Diagnostics)
func (*TemplateRackBased) MinMaxApiVersions ¶
func (o *TemplateRackBased) MinMaxApiVersions(_ context.Context, diags *diag.Diagnostics) (*version.Version, *version.Version)
func (*TemplateRackBased) Request ¶
func (o *TemplateRackBased) Request(ctx context.Context, diags *diag.Diagnostics) *apstra.CreateRackBasedTemplateRequest
func (TemplateRackBased) ResourceAttributes ¶
func (o TemplateRackBased) ResourceAttributes() map[string]resourceSchema.Attribute
func (*TemplateRackBased) Validate ¶
func (o *TemplateRackBased) Validate(ctx context.Context, diags *diag.Diagnostics)
type TemplateRackInfo ¶
type TemplateRackInfo struct { Count types.Int64 `tfsdk:"count"` RackType types.Object `tfsdk:"rack_type"` }
func (TemplateRackInfo) DataSourceAttributesNested ¶
func (o TemplateRackInfo) DataSourceAttributesNested() map[string]dataSourceSchema.Attribute
func (*TemplateRackInfo) LoadApiData ¶
func (o *TemplateRackInfo) LoadApiData(ctx context.Context, in *apstra.TemplateRackBasedRackInfo, diags *diag.Diagnostics)
func (TemplateRackInfo) ResourceAttributesNested ¶
func (o TemplateRackInfo) ResourceAttributesNested() map[string]resourceSchema.Attribute
Source Files ¶
- configlet.go
- configlet_generator.go
- configlet_generator_validator.go
- constants.go
- interface_map.go
- interface_map_interface.go
- interface_map_mapping.go
- logical_device.go
- logical_device_panel.go
- logical_device_panel_port_group.go
- property_set.go
- rack_type.go
- rack_type_access_switch.go
- rack_type_esi_lag_info.go
- rack_type_generic_system.go
- rack_type_leaf_switch.go
- rack_type_link.go
- rack_type_mlag_info.go
- spine_switch.go
- tag.go
- template_rack_based.go
- template_rack_info.go
Click to show internal directories.
Click to hide internal directories.