Documentation ¶
Index ¶
- func OrgEvpnTopologyResourceSchema(ctx context.Context) schema.Schema
- func TerraformToSdk(ctx context.Context, plan *OrgEvpnTopologyModel) (*models.EvpnTopology, diag.Diagnostics)
- type EvpnOptionsType
- func (t EvpnOptionsType) Equal(o attr.Type) bool
- func (t EvpnOptionsType) String() string
- func (t EvpnOptionsType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t EvpnOptionsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t EvpnOptionsType) ValueType(ctx context.Context) attr.Value
- type EvpnOptionsValue
- func NewEvpnOptionsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (EvpnOptionsValue, diag.Diagnostics)
- func NewEvpnOptionsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) EvpnOptionsValue
- func NewEvpnOptionsValueNull() EvpnOptionsValue
- func NewEvpnOptionsValueUnknown() EvpnOptionsValue
- func (v EvpnOptionsValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v EvpnOptionsValue) Equal(o attr.Value) bool
- func (v EvpnOptionsValue) IsNull() bool
- func (v EvpnOptionsValue) IsUnknown() bool
- func (v EvpnOptionsValue) String() string
- func (v EvpnOptionsValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v EvpnOptionsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v EvpnOptionsValue) Type(ctx context.Context) attr.Type
- type OrgEvpnTopologyModel
- type OverlayType
- func (t OverlayType) Equal(o attr.Type) bool
- func (t OverlayType) String() string
- func (t OverlayType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t OverlayType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t OverlayType) ValueType(ctx context.Context) attr.Value
- type OverlayValue
- func NewOverlayValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (OverlayValue, diag.Diagnostics)
- func NewOverlayValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) OverlayValue
- func NewOverlayValueNull() OverlayValue
- func NewOverlayValueUnknown() OverlayValue
- func (v OverlayValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v OverlayValue) Equal(o attr.Value) bool
- func (v OverlayValue) IsNull() bool
- func (v OverlayValue) IsUnknown() bool
- func (v OverlayValue) String() string
- func (v OverlayValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v OverlayValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v OverlayValue) Type(ctx context.Context) attr.Type
- type SwitchesType
- func (t SwitchesType) Equal(o attr.Type) bool
- func (t SwitchesType) String() string
- func (t SwitchesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t SwitchesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SwitchesType) ValueType(ctx context.Context) attr.Value
- type SwitchesValue
- func NewSwitchesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SwitchesValue, diag.Diagnostics)
- func NewSwitchesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SwitchesValue
- func NewSwitchesValueNull() SwitchesValue
- func NewSwitchesValueUnknown() SwitchesValue
- func (v SwitchesValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v SwitchesValue) Equal(o attr.Value) bool
- func (v SwitchesValue) IsNull() bool
- func (v SwitchesValue) IsUnknown() bool
- func (v SwitchesValue) String() string
- func (v SwitchesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v SwitchesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v SwitchesValue) Type(ctx context.Context) attr.Type
- type UnderlayType
- func (t UnderlayType) Equal(o attr.Type) bool
- func (t UnderlayType) String() string
- func (t UnderlayType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t UnderlayType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t UnderlayType) ValueType(ctx context.Context) attr.Value
- type UnderlayValue
- func NewUnderlayValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (UnderlayValue, diag.Diagnostics)
- func NewUnderlayValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) UnderlayValue
- func NewUnderlayValueNull() UnderlayValue
- func NewUnderlayValueUnknown() UnderlayValue
- func (v UnderlayValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v UnderlayValue) Equal(o attr.Value) bool
- func (v UnderlayValue) IsNull() bool
- func (v UnderlayValue) IsUnknown() bool
- func (v UnderlayValue) String() string
- func (v UnderlayValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v UnderlayValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v UnderlayValue) Type(ctx context.Context) attr.Type
- type VsInstancesType
- func (t VsInstancesType) Equal(o attr.Type) bool
- func (t VsInstancesType) String() string
- func (t VsInstancesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t VsInstancesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t VsInstancesType) ValueType(ctx context.Context) attr.Value
- type VsInstancesValue
- func NewVsInstancesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (VsInstancesValue, diag.Diagnostics)
- func NewVsInstancesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) VsInstancesValue
- func NewVsInstancesValueNull() VsInstancesValue
- func NewVsInstancesValueUnknown() VsInstancesValue
- func (v VsInstancesValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v VsInstancesValue) Equal(o attr.Value) bool
- func (v VsInstancesValue) IsNull() bool
- func (v VsInstancesValue) IsUnknown() bool
- func (v VsInstancesValue) String() string
- func (v VsInstancesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v VsInstancesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v VsInstancesValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TerraformToSdk ¶
func TerraformToSdk(ctx context.Context, plan *OrgEvpnTopologyModel) (*models.EvpnTopology, diag.Diagnostics)
Types ¶
type EvpnOptionsType ¶
type EvpnOptionsType struct {
basetypes.ObjectType
}
func (EvpnOptionsType) String ¶
func (t EvpnOptionsType) String() string
func (EvpnOptionsType) ValueFromObject ¶
func (t EvpnOptionsType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (EvpnOptionsType) ValueFromTerraform ¶
type EvpnOptionsValue ¶
type EvpnOptionsValue struct { AutoLoopbackSubnet basetypes.StringValue `tfsdk:"auto_loopback_subnet"` AutoLoopbackSubnet6 basetypes.StringValue `tfsdk:"auto_loopback_subnet6"` AutoRouterIdSubnet basetypes.StringValue `tfsdk:"auto_router_id_subnet"` AutoRouterIdSubnet6 basetypes.StringValue `tfsdk:"auto_router_id_subnet6"` CoreAsBorder basetypes.BoolValue `tfsdk:"core_as_border"` Overlay basetypes.ObjectValue `tfsdk:"overlay"` PerVlanVgaV4Mac basetypes.BoolValue `tfsdk:"per_vlan_vga_v4_mac"` RoutedAt basetypes.StringValue `tfsdk:"routed_at"` Underlay basetypes.ObjectValue `tfsdk:"underlay"` VsInstances basetypes.MapValue `tfsdk:"vs_instances"` // contains filtered or unexported fields }
func NewEvpnOptionsValue ¶
func NewEvpnOptionsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (EvpnOptionsValue, diag.Diagnostics)
func NewEvpnOptionsValueMust ¶
func NewEvpnOptionsValueNull ¶
func NewEvpnOptionsValueNull() EvpnOptionsValue
func NewEvpnOptionsValueUnknown ¶
func NewEvpnOptionsValueUnknown() EvpnOptionsValue
func (EvpnOptionsValue) AttributeTypes ¶
func (EvpnOptionsValue) IsNull ¶
func (v EvpnOptionsValue) IsNull() bool
func (EvpnOptionsValue) IsUnknown ¶
func (v EvpnOptionsValue) IsUnknown() bool
func (EvpnOptionsValue) String ¶
func (v EvpnOptionsValue) String() string
func (EvpnOptionsValue) ToObjectValue ¶
func (v EvpnOptionsValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (EvpnOptionsValue) ToTerraformValue ¶
type OrgEvpnTopologyModel ¶
type OrgEvpnTopologyModel struct { EvpnOptions EvpnOptionsValue `tfsdk:"evpn_options"` Id types.String `tfsdk:"id"` Name types.String `tfsdk:"name"` OrgId types.String `tfsdk:"org_id"` PodNames types.Map `tfsdk:"pod_names"` Switches types.Map `tfsdk:"switches"` }
func SdkToTerraform ¶
func SdkToTerraform(ctx context.Context, data models.EvpnTopology) (OrgEvpnTopologyModel, diag.Diagnostics)
type OverlayType ¶
type OverlayType struct {
basetypes.ObjectType
}
func (OverlayType) String ¶
func (t OverlayType) String() string
func (OverlayType) ValueFromObject ¶
func (t OverlayType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (OverlayType) ValueFromTerraform ¶
type OverlayValue ¶
type OverlayValue struct { As basetypes.Int64Value `tfsdk:"as"` // contains filtered or unexported fields }
func NewOverlayValue ¶
func NewOverlayValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (OverlayValue, diag.Diagnostics)
func NewOverlayValueMust ¶
func NewOverlayValueNull ¶
func NewOverlayValueNull() OverlayValue
func NewOverlayValueUnknown ¶
func NewOverlayValueUnknown() OverlayValue
func (OverlayValue) AttributeTypes ¶
func (OverlayValue) IsNull ¶
func (v OverlayValue) IsNull() bool
func (OverlayValue) IsUnknown ¶
func (v OverlayValue) IsUnknown() bool
func (OverlayValue) String ¶
func (v OverlayValue) String() string
func (OverlayValue) ToObjectValue ¶
func (v OverlayValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (OverlayValue) ToTerraformValue ¶
type SwitchesType ¶
type SwitchesType struct {
basetypes.ObjectType
}
func (SwitchesType) String ¶
func (t SwitchesType) String() string
func (SwitchesType) ValueFromObject ¶
func (t SwitchesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (SwitchesType) ValueFromTerraform ¶
type SwitchesValue ¶
type SwitchesValue struct { DeviceprofileId basetypes.StringValue `tfsdk:"deviceprofile_id"` EvpnId basetypes.Int64Value `tfsdk:"evpn_id"` Mac basetypes.StringValue `tfsdk:"mac"` Model basetypes.StringValue `tfsdk:"model"` Pod basetypes.Int64Value `tfsdk:"pod"` Pods basetypes.ListValue `tfsdk:"pods"` Role basetypes.StringValue `tfsdk:"role"` RouterId basetypes.StringValue `tfsdk:"router_id"` SiteId basetypes.StringValue `tfsdk:"site_id"` // contains filtered or unexported fields }
func NewSwitchesValue ¶
func NewSwitchesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SwitchesValue, diag.Diagnostics)
func NewSwitchesValueMust ¶
func NewSwitchesValueNull ¶
func NewSwitchesValueNull() SwitchesValue
func NewSwitchesValueUnknown ¶
func NewSwitchesValueUnknown() SwitchesValue
func (SwitchesValue) AttributeTypes ¶
func (SwitchesValue) IsNull ¶
func (v SwitchesValue) IsNull() bool
func (SwitchesValue) IsUnknown ¶
func (v SwitchesValue) IsUnknown() bool
func (SwitchesValue) String ¶
func (v SwitchesValue) String() string
func (SwitchesValue) ToObjectValue ¶
func (v SwitchesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (SwitchesValue) ToTerraformValue ¶
type UnderlayType ¶
type UnderlayType struct {
basetypes.ObjectType
}
func (UnderlayType) String ¶
func (t UnderlayType) String() string
func (UnderlayType) ValueFromObject ¶
func (t UnderlayType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (UnderlayType) ValueFromTerraform ¶
type UnderlayValue ¶
type UnderlayValue struct { AsBase basetypes.Int64Value `tfsdk:"as_base"` RoutedIdPrefix basetypes.StringValue `tfsdk:"routed_id_prefix"` Subnet basetypes.StringValue `tfsdk:"subnet"` UseIpv6 basetypes.BoolValue `tfsdk:"use_ipv6"` // contains filtered or unexported fields }
func NewUnderlayValue ¶
func NewUnderlayValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (UnderlayValue, diag.Diagnostics)
func NewUnderlayValueMust ¶
func NewUnderlayValueNull ¶
func NewUnderlayValueNull() UnderlayValue
func NewUnderlayValueUnknown ¶
func NewUnderlayValueUnknown() UnderlayValue
func (UnderlayValue) AttributeTypes ¶
func (UnderlayValue) IsNull ¶
func (v UnderlayValue) IsNull() bool
func (UnderlayValue) IsUnknown ¶
func (v UnderlayValue) IsUnknown() bool
func (UnderlayValue) String ¶
func (v UnderlayValue) String() string
func (UnderlayValue) ToObjectValue ¶
func (v UnderlayValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (UnderlayValue) ToTerraformValue ¶
type VsInstancesType ¶
type VsInstancesType struct {
basetypes.ObjectType
}
func (VsInstancesType) String ¶
func (t VsInstancesType) String() string
func (VsInstancesType) ValueFromObject ¶
func (t VsInstancesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (VsInstancesType) ValueFromTerraform ¶
type VsInstancesValue ¶
type VsInstancesValue struct { Networks basetypes.ListValue `tfsdk:"networks"` // contains filtered or unexported fields }
func NewVsInstancesValue ¶
func NewVsInstancesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (VsInstancesValue, diag.Diagnostics)
func NewVsInstancesValueMust ¶
func NewVsInstancesValueNull ¶
func NewVsInstancesValueNull() VsInstancesValue
func NewVsInstancesValueUnknown ¶
func NewVsInstancesValueUnknown() VsInstancesValue
func (VsInstancesValue) AttributeTypes ¶
func (VsInstancesValue) IsNull ¶
func (v VsInstancesValue) IsNull() bool
func (VsInstancesValue) IsUnknown ¶
func (v VsInstancesValue) IsUnknown() bool
func (VsInstancesValue) String ¶
func (v VsInstancesValue) String() string
func (VsInstancesValue) ToObjectValue ¶
func (v VsInstancesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (VsInstancesValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.