diff --git a/docs/data-sources/l3out_node_sid_profile.md b/docs/data-sources/l3out_node_sid_profile.md index f92089845..08de7954d 100644 --- a/docs/data-sources/l3out_node_sid_profile.md +++ b/docs/data-sources/l3out_node_sid_profile.md @@ -7,12 +7,12 @@ layout: "aci" page_title: "ACI: aci_l3out_node_sid_profile" sidebar_current: "docs-aci-data-source-aci_l3out_node_sid_profile" description: |- - Data source for L3out Node Sid Profile + Data source for L3out Node SR-MPLS Segment ID Profile --- # aci_l3out_node_sid_profile # -Data source for L3out Node Sid Profile +Data source for L3out Node SR-MPLS Segment ID Profile ## API Information ## @@ -32,7 +32,7 @@ Data source for L3out Node Sid Profile data "aci_l3out_node_sid_profile" "example_l3out_loopback_interface_profile" { parent_dn = aci_l3out_loopback_interface_profile.example.id - sid_offset = "1" + segment_id = "1" } ``` @@ -43,16 +43,16 @@ data "aci_l3out_node_sid_profile" "example_l3out_loopback_interface_profile" { * `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources: - [aci_l3out_loopback_interface_profile](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/l3out_loopback_interface_profile) ([l3extLoopBackIfP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/l3extLoopBackIfP/overview)) -* `sid_offset` (sidoffset) - (string) The offset ID of the L3out Node Sid Profile object. +* `segment_id` (sidoffset) - (string) The segment ID of the L3out Node SR-MPLS Segment ID Profile object. ### Read-Only ### -* `id` - (string) The distinguished name (DN) of the L3out Node Sid Profile object. -* `annotation` (annotation) - (string) The annotation of the L3out Node Sid Profile object. -* `description` (descr) - (string) The description of the L3out Node Sid Profile object. -* `loopback_address` (loopbackAddr) - (string) The loopback address of the L3out Node Sid Profile object. -* `name` (name) - (string) The name of the L3out Node Sid Profile object. -* `name_alias` (nameAlias) - (string) The name alias of the L3out Node Sid Profile object. +* `id` - (string) The distinguished name (DN) of the L3out Node SR-MPLS Segment ID Profile object. +* `annotation` (annotation) - (string) The annotation of the L3out Node SR-MPLS Segment ID Profile object. +* `description` (descr) - (string) The description of the L3out Node SR-MPLS Segment ID Profile object. +* `loopback_address` (loopbackAddr) - (string) The loopback address of the L3out Node SR-MPLS Segment ID Profile object. +* `name` (name) - (string) The name of the L3out Node SR-MPLS Segment ID Profile object. +* `name_alias` (nameAlias) - (string) The name alias of the L3out Node SR-MPLS Segment ID Profile object. * `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). This attribute is supported in ACI versions: 3.2(1l) and later. * `key` (key) - (string) The key used to uniquely identify this configuration object. diff --git a/docs/resources/l3out_node_sid_profile.md b/docs/resources/l3out_node_sid_profile.md index 2ad935c18..bebbede6f 100644 --- a/docs/resources/l3out_node_sid_profile.md +++ b/docs/resources/l3out_node_sid_profile.md @@ -7,12 +7,12 @@ layout: "aci" page_title: "ACI: aci_l3out_node_sid_profile" sidebar_current: "docs-aci-resource-aci_l3out_node_sid_profile" description: |- - Manages ACI L3out Node Sid Profile + Manages ACI L3out Node SR-MPLS Segment ID Profile --- # aci_l3out_node_sid_profile # -Manages ACI L3out Node Sid Profile +Manages ACI L3out Node SR-MPLS Segment ID Profile @@ -30,17 +30,17 @@ Manages ACI L3out Node Sid Profile ## Example Usage ## -The configuration snippet below creates a L3out Node Sid Profile with only required attributes. +The configuration snippet below creates a L3out Node SR-MPLS Segment ID Profile with only required attributes. ```hcl resource "aci_l3out_node_sid_profile" "example_l3out_loopback_interface_profile" { parent_dn = aci_l3out_loopback_interface_profile.example.id - sid_offset = "1" + segment_id = "1" } ``` -The configuration snippet below shows all possible attributes of the L3out Node Sid Profile. +The configuration snippet below shows all possible attributes of the L3out Node SR-MPLS Segment ID Profile. !> This example might not be valid configuration and is only used to show all possible attributes. @@ -53,7 +53,7 @@ resource "aci_l3out_node_sid_profile" "full_example_l3out_loopback_interface_pro loopback_address = "1.1.1.1" name = "node_sid_profile" name_alias = "name_alias" - sid_offset = "1" + segment_id = "1" annotations = [ { key = "key_0" @@ -70,7 +70,7 @@ resource "aci_l3out_node_sid_profile" "full_example_l3out_loopback_interface_pro ``` -All examples for the L3out Node Sid Profile resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_l3out_node_sid_profile) folder. +All examples for the L3out Node SR-MPLS Segment ID Profile resource can be found in the [examples](https://github.com/CiscoDevNet/terraform-provider-aci/tree/master/examples/resources/aci_l3out_node_sid_profile) folder. ## Schema ## @@ -78,20 +78,20 @@ All examples for the L3out Node Sid Profile resource can be found in the [exampl * `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources: - [aci_l3out_loopback_interface_profile](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/l3out_loopback_interface_profile) ([l3extLoopBackIfP](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/l3extLoopBackIfP/overview)) -* `sid_offset` (sidoffset) - (string) The offset ID of the L3out Node Sid Profile object. +* `segment_id` (sidoffset) - (string) The segment ID of the L3out Node SR-MPLS Segment ID Profile object. ### Read-Only ### -* `id` - (string) The distinguished name (DN) of the L3out Node Sid Profile object. +* `id` - (string) The distinguished name (DN) of the L3out Node SR-MPLS Segment ID Profile object. ### Optional ### -* `annotation` (annotation) - (string) The annotation of the L3out Node Sid Profile object. +* `annotation` (annotation) - (string) The annotation of the L3out Node SR-MPLS Segment ID Profile object. - Default: `orchestrator:terraform` -* `description` (descr) - (string) The description of the L3out Node Sid Profile object. -* `loopback_address` (loopbackAddr) - (string) The loopback address of the L3out Node Sid Profile object. -* `name` (name) - (string) The name of the L3out Node Sid Profile object. -* `name_alias` (nameAlias) - (string) The name alias of the L3out Node Sid Profile object. +* `description` (descr) - (string) The description of the L3out Node SR-MPLS Segment ID Profile object. +* `loopback_address` (loopbackAddr) - (string) The loopback address of the L3out Node SR-MPLS Segment ID Profile object. +* `name` (name) - (string) The name of the L3out Node SR-MPLS Segment ID Profile object. +* `name_alias` (nameAlias) - (string) The name alias of the L3out Node SR-MPLS Segment ID Profile object. * `annotations` - (list) A list of Annotations (ACI object [tagAnnotation](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/tagAnnotation/overview)). Annotations can also be configured using a separate [aci_annotation](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/annotation) resource. This attribute is supported in ACI versions: 3.2(1l) and later. @@ -109,13 +109,13 @@ All examples for the L3out Node Sid Profile resource can be found in the [exampl ## Importing -An existing L3out Node Sid Profile can be [imported](https://www.terraform.io/docs/import/index.html) into this resource with its distinguished name (DN), via the following command: +An existing L3out Node SR-MPLS Segment ID Profile can be [imported](https://www.terraform.io/docs/import/index.html) into this resource with its distinguished name (DN), via the following command: ``` terraform import aci_l3out_node_sid_profile.example_l3out_loopback_interface_profile uni/tn-{name}/out-{name}/lnodep-{name}/rsnodeL3OutAtt-[{tDn}]/lbp-[{addr}]/nodesidp-{sidoffset} ``` -Starting in Terraform version 1.5, an existing L3out Node Sid Profile can be imported +Starting in Terraform version 1.5, an existing L3out Node SR-MPLS Segment ID Profile can be imported using [import blocks](https://developer.hashicorp.com/terraform/language/import) via the following configuration: ``` diff --git a/examples/data-sources/aci_l3out_node_sid_profile/data-source.tf b/examples/data-sources/aci_l3out_node_sid_profile/data-source.tf index 8cb7d7bf7..a6e6ca691 100644 --- a/examples/data-sources/aci_l3out_node_sid_profile/data-source.tf +++ b/examples/data-sources/aci_l3out_node_sid_profile/data-source.tf @@ -1,5 +1,5 @@ data "aci_l3out_node_sid_profile" "example_l3out_loopback_interface_profile" { parent_dn = aci_l3out_loopback_interface_profile.example.id - sid_offset = "1" + segment_id = "1" } diff --git a/examples/resources/aci_l3out_node_sid_profile/resource-all-attributes.tf b/examples/resources/aci_l3out_node_sid_profile/resource-all-attributes.tf index e2f63f9eb..36324de10 100644 --- a/examples/resources/aci_l3out_node_sid_profile/resource-all-attributes.tf +++ b/examples/resources/aci_l3out_node_sid_profile/resource-all-attributes.tf @@ -6,7 +6,7 @@ resource "aci_l3out_node_sid_profile" "full_example_l3out_loopback_interface_pro loopback_address = "1.1.1.1" name = "node_sid_profile" name_alias = "name_alias" - sid_offset = "1" + segment_id = "1" annotations = [ { key = "key_0" diff --git a/examples/resources/aci_l3out_node_sid_profile/resource.tf b/examples/resources/aci_l3out_node_sid_profile/resource.tf index 7f58419c5..a7377a206 100644 --- a/examples/resources/aci_l3out_node_sid_profile/resource.tf +++ b/examples/resources/aci_l3out_node_sid_profile/resource.tf @@ -1,5 +1,5 @@ resource "aci_l3out_node_sid_profile" "example_l3out_loopback_interface_profile" { parent_dn = aci_l3out_loopback_interface_profile.example.id - sid_offset = "1" + segment_id = "1" } diff --git a/gen/definitions/properties.yaml b/gen/definitions/properties.yaml index 3591884c4..d3a0a8d85 100644 --- a/gen/definitions/properties.yaml +++ b/gen/definitions/properties.yaml @@ -22,6 +22,7 @@ global: descr: "description" resource_name_doc_overwrite: Vrf: VRF + Sid: "SR-MPLS Segment ID" ignores: - "userdom" @@ -237,27 +238,27 @@ l3extProvLbl: mplsNodeSidP: overwrites: loopback_addr: "loopback_address" - sidoffset: "sid_offset" + sidoffset: "segment_id" documentation: loopbackAddr: "The loopback address of the %s object." - sidoffset: "The offset ID of the %s object." + sidoffset: "The segment ID of the %s object." test_values: default: - sid_offset: "1" + segment_id: "1" loopback_address: "0.0.0.0" name: "" all: loopback_address: "1.1.1.1" - sid_offset: "1" + segment_id: "1" name: "node_sid_profile" resource_required: - sid_offset: "1" + segment_id: "1" name: "node_sid_profile" loopback_address: "1.1.1.1" datasource_required: - sid_offset: "1" + segment_id: "1" datasource_non_existing: - sid_offset: "2" + segment_id: "2" parents: - class_name: "l3extLoopBackIfP" parent_dependency: "l3extRsNodeL3OutAtt" diff --git a/gen/testvars/mplsNodeSidP.yaml b/gen/testvars/mplsNodeSidP.yaml index 3fbfc48e7..90659625c 100644 --- a/gen/testvars/mplsNodeSidP.yaml +++ b/gen/testvars/mplsNodeSidP.yaml @@ -10,13 +10,13 @@ default: name_alias: "" datasource_non_existing: - sid_offset: "2" + segment_id: "2" datasource_required: - sid_offset: "1" + segment_id: "1" resource_required: - sid_offset: "1" + segment_id: "1" all: annotation: "annotation" diff --git a/internal/provider/data_source_aci_l3out_node_sid_profile.go b/internal/provider/data_source_aci_l3out_node_sid_profile.go index 1f131c32c..0452ddff9 100644 --- a/internal/provider/data_source_aci_l3out_node_sid_profile.go +++ b/internal/provider/data_source_aci_l3out_node_sid_profile.go @@ -42,7 +42,7 @@ func (d *MplsNodeSidPDataSource) Schema(ctx context.Context, req datasource.Sche Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Computed: true, - MarkdownDescription: "The distinguished name (DN) of the L3out Node Sid Profile object.", + MarkdownDescription: "The distinguished name (DN) of the L3out Node SR-MPLS Segment ID Profile object.", }, "parent_dn": schema.StringAttribute{ Required: true, @@ -50,27 +50,27 @@ func (d *MplsNodeSidPDataSource) Schema(ctx context.Context, req datasource.Sche }, "annotation": schema.StringAttribute{ Computed: true, - MarkdownDescription: `The annotation of the L3out Node Sid Profile object.`, + MarkdownDescription: `The annotation of the L3out Node SR-MPLS Segment ID Profile object.`, }, "description": schema.StringAttribute{ Computed: true, - MarkdownDescription: `The description of the L3out Node Sid Profile object.`, + MarkdownDescription: `The description of the L3out Node SR-MPLS Segment ID Profile object.`, }, "loopback_address": schema.StringAttribute{ Computed: true, - MarkdownDescription: `The loopback address of the L3out Node Sid Profile object.`, + MarkdownDescription: `The loopback address of the L3out Node SR-MPLS Segment ID Profile object.`, }, "name": schema.StringAttribute{ Computed: true, - MarkdownDescription: `The name of the L3out Node Sid Profile object.`, + MarkdownDescription: `The name of the L3out Node SR-MPLS Segment ID Profile object.`, }, "name_alias": schema.StringAttribute{ Computed: true, - MarkdownDescription: `The name alias of the L3out Node Sid Profile object.`, + MarkdownDescription: `The name alias of the L3out Node SR-MPLS Segment ID Profile object.`, }, - "sid_offset": schema.StringAttribute{ + "segment_id": schema.StringAttribute{ Required: true, - MarkdownDescription: `The offset ID of the L3out Node Sid Profile object.`, + MarkdownDescription: `The segment ID of the L3out Node SR-MPLS Segment ID Profile object.`, }, "annotations": schema.SetNestedAttribute{ MarkdownDescription: ``, diff --git a/internal/provider/data_source_aci_l3out_node_sid_profile_test.go b/internal/provider/data_source_aci_l3out_node_sid_profile_test.go index 7d5e3bccf..76a85fd54 100644 --- a/internal/provider/data_source_aci_l3out_node_sid_profile_test.go +++ b/internal/provider/data_source_aci_l3out_node_sid_profile_test.go @@ -21,7 +21,7 @@ func TestAccDataSourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { Config: testConfigMplsNodeSidPDataSourceDependencyWithL3extLoopBackIfP, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("data.aci_l3out_node_sid_profile.test", "sid_offset", "1"), + resource.TestCheckResourceAttr("data.aci_l3out_node_sid_profile.test", "segment_id", "1"), resource.TestCheckResourceAttr("data.aci_l3out_node_sid_profile.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("data.aci_l3out_node_sid_profile.test", "description", ""), resource.TestCheckResourceAttr("data.aci_l3out_node_sid_profile.test", "loopback_address", "0.0.0.0"), @@ -40,7 +40,7 @@ func TestAccDataSourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { const testConfigMplsNodeSidPDataSourceDependencyWithL3extLoopBackIfP = testConfigMplsNodeSidPMinDependencyWithL3extLoopBackIfP + ` data "aci_l3out_node_sid_profile" "test" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "1" + segment_id = "1" depends_on = [aci_l3out_node_sid_profile.test] } ` @@ -48,7 +48,7 @@ data "aci_l3out_node_sid_profile" "test" { const testConfigMplsNodeSidPNotExistingL3extLoopBackIfP = testConfigMplsNodeSidPMinDependencyWithL3extLoopBackIfP + ` data "aci_l3out_node_sid_profile" "test_non_existing" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "2" + segment_id = "2" depends_on = [aci_l3out_node_sid_profile.test] } ` diff --git a/internal/provider/resource_aci_l3out_node_sid_profile.go b/internal/provider/resource_aci_l3out_node_sid_profile.go index 587198326..b64363c56 100644 --- a/internal/provider/resource_aci_l3out_node_sid_profile.go +++ b/internal/provider/resource_aci_l3out_node_sid_profile.go @@ -48,7 +48,7 @@ type MplsNodeSidPResourceModel struct { LoopbackAddr types.String `tfsdk:"loopback_address"` Name types.String `tfsdk:"name"` NameAlias types.String `tfsdk:"name_alias"` - Sidoffset types.String `tfsdk:"sid_offset"` + Sidoffset types.String `tfsdk:"segment_id"` TagAnnotation types.Set `tfsdk:"annotations"` TagTag types.Set `tfsdk:"tags"` } @@ -84,7 +84,7 @@ func (r *MplsNodeSidPResource) Schema(ctx context.Context, req resource.SchemaRe Attributes: map[string]schema.Attribute{ "id": schema.StringAttribute{ Computed: true, - MarkdownDescription: "The distinguished name (DN) of the L3out Node Sid Profile object.", + MarkdownDescription: "The distinguished name (DN) of the L3out Node SR-MPLS Segment ID Profile object.", PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, @@ -104,7 +104,7 @@ func (r *MplsNodeSidPResource) Schema(ctx context.Context, req resource.SchemaRe stringplanmodifier.UseStateForUnknown(), }, Default: stringdefault.StaticString(globalAnnotation), - MarkdownDescription: `The annotation of the L3out Node Sid Profile object.`, + MarkdownDescription: `The annotation of the L3out Node SR-MPLS Segment ID Profile object.`, }, "description": schema.StringAttribute{ Optional: true, @@ -112,7 +112,7 @@ func (r *MplsNodeSidPResource) Schema(ctx context.Context, req resource.SchemaRe PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, - MarkdownDescription: `The description of the L3out Node Sid Profile object.`, + MarkdownDescription: `The description of the L3out Node SR-MPLS Segment ID Profile object.`, }, "loopback_address": schema.StringAttribute{ Optional: true, @@ -120,7 +120,7 @@ func (r *MplsNodeSidPResource) Schema(ctx context.Context, req resource.SchemaRe PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, - MarkdownDescription: `The loopback address of the L3out Node Sid Profile object.`, + MarkdownDescription: `The loopback address of the L3out Node SR-MPLS Segment ID Profile object.`, }, "name": schema.StringAttribute{ Optional: true, @@ -128,7 +128,7 @@ func (r *MplsNodeSidPResource) Schema(ctx context.Context, req resource.SchemaRe PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, - MarkdownDescription: `The name of the L3out Node Sid Profile object.`, + MarkdownDescription: `The name of the L3out Node SR-MPLS Segment ID Profile object.`, }, "name_alias": schema.StringAttribute{ Optional: true, @@ -136,15 +136,15 @@ func (r *MplsNodeSidPResource) Schema(ctx context.Context, req resource.SchemaRe PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), }, - MarkdownDescription: `The name alias of the L3out Node Sid Profile object.`, + MarkdownDescription: `The name alias of the L3out Node SR-MPLS Segment ID Profile object.`, }, - "sid_offset": schema.StringAttribute{ + "segment_id": schema.StringAttribute{ Required: true, PlanModifiers: []planmodifier.String{ stringplanmodifier.UseStateForUnknown(), stringplanmodifier.RequiresReplace(), }, - MarkdownDescription: `The offset ID of the L3out Node Sid Profile object.`, + MarkdownDescription: `The segment ID of the L3out Node SR-MPLS Segment ID Profile object.`, }, "annotations": schema.SetNestedAttribute{ MarkdownDescription: ``, diff --git a/internal/provider/resource_aci_l3out_node_sid_profile_test.go b/internal/provider/resource_aci_l3out_node_sid_profile_test.go index 5a10ea8c2..553f66076 100644 --- a/internal/provider/resource_aci_l3out_node_sid_profile_test.go +++ b/internal/provider/resource_aci_l3out_node_sid_profile_test.go @@ -21,7 +21,7 @@ func TestAccResourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { Config: testConfigMplsNodeSidPMinDependencyWithL3extLoopBackIfP, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "sid_offset", "1"), + resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "segment_id", "1"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "description", ""), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "loopback_address", "0.0.0.0"), @@ -34,7 +34,7 @@ func TestAccResourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { Config: testConfigMplsNodeSidPAllDependencyWithL3extLoopBackIfP, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "sid_offset", "1"), + resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "segment_id", "1"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "annotation", "annotation"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "description", "description"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "loopback_address", "1.1.1.1"), @@ -47,7 +47,7 @@ func TestAccResourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { Config: testConfigMplsNodeSidPMinDependencyWithL3extLoopBackIfP, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "sid_offset", "1"), + resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "segment_id", "1"), ), }, // Update with empty strings config or default value @@ -55,7 +55,7 @@ func TestAccResourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { Config: testConfigMplsNodeSidPResetDependencyWithL3extLoopBackIfP, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "sid_offset", "1"), + resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "segment_id", "1"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "description", ""), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "loopback_address", "0.0.0.0"), @@ -69,7 +69,7 @@ func TestAccResourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { ImportState: true, ImportStateVerify: true, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "sid_offset", "1"), + resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "segment_id", "1"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "description", ""), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "loopback_address", "0.0.0.0"), @@ -82,7 +82,7 @@ func TestAccResourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { Config: testConfigMplsNodeSidPChildrenDependencyWithL3extLoopBackIfP, ExpectNonEmptyPlan: false, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "sid_offset", "1"), + resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "segment_id", "1"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "description", ""), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "loopback_address", "0.0.0.0"), @@ -104,7 +104,7 @@ func TestAccResourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { ImportState: true, ImportStateVerify: true, Check: resource.ComposeAggregateTestCheckFunc( - resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "sid_offset", "1"), + resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "segment_id", "1"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "annotation", "orchestrator:terraform"), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "description", ""), resource.TestCheckResourceAttr("aci_l3out_node_sid_profile.test", "loopback_address", "0.0.0.0"), @@ -166,14 +166,14 @@ func TestAccResourceMplsNodeSidPWithL3extLoopBackIfP(t *testing.T) { const testConfigMplsNodeSidPMinDependencyWithL3extLoopBackIfP = testConfigL3extLoopBackIfPMinDependencyWithL3extRsNodeL3OutAtt + ` resource "aci_l3out_node_sid_profile" "test" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "1" + segment_id = "1" } ` const testConfigMplsNodeSidPAllDependencyWithL3extLoopBackIfP = testConfigL3extLoopBackIfPMinDependencyWithL3extRsNodeL3OutAtt + ` resource "aci_l3out_node_sid_profile" "test" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "1" + segment_id = "1" annotation = "annotation" description = "description" loopback_address = "1.1.1.1" @@ -185,7 +185,7 @@ resource "aci_l3out_node_sid_profile" "test" { const testConfigMplsNodeSidPResetDependencyWithL3extLoopBackIfP = testConfigL3extLoopBackIfPMinDependencyWithL3extRsNodeL3OutAtt + ` resource "aci_l3out_node_sid_profile" "test" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "1" + segment_id = "1" annotation = "orchestrator:terraform" description = "" loopback_address = "0.0.0.0" @@ -196,7 +196,7 @@ resource "aci_l3out_node_sid_profile" "test" { const testConfigMplsNodeSidPChildrenDependencyWithL3extLoopBackIfP = testConfigL3extLoopBackIfPMinDependencyWithL3extRsNodeL3OutAtt + ` resource "aci_l3out_node_sid_profile" "test" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "1" + segment_id = "1" annotations = [ { key = "key_0" @@ -223,14 +223,14 @@ resource "aci_l3out_node_sid_profile" "test" { const testConfigMplsNodeSidPChildrenRemoveFromConfigDependencyWithL3extLoopBackIfP = testConfigL3extLoopBackIfPMinDependencyWithL3extRsNodeL3OutAtt + ` resource "aci_l3out_node_sid_profile" "test" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "1" + segment_id = "1" } ` const testConfigMplsNodeSidPChildrenRemoveOneDependencyWithL3extLoopBackIfP = testConfigL3extLoopBackIfPMinDependencyWithL3extRsNodeL3OutAtt + ` resource "aci_l3out_node_sid_profile" "test" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "1" + segment_id = "1" annotations = [ { key = "key_1" @@ -249,7 +249,7 @@ resource "aci_l3out_node_sid_profile" "test" { const testConfigMplsNodeSidPChildrenRemoveAllDependencyWithL3extLoopBackIfP = testConfigL3extLoopBackIfPMinDependencyWithL3extRsNodeL3OutAtt + ` resource "aci_l3out_node_sid_profile" "test" { parent_dn = aci_l3out_loopback_interface_profile.test.id - sid_offset = "1" + segment_id = "1" annotations = [] tags = [] }