Skip to content

Commit

Permalink
[ignore] Changed the sid_offset attribute name in the aci_l3out_node_…
Browse files Browse the repository at this point in the history
…sid_profile resource
  • Loading branch information
sajagana committed May 6, 2024
1 parent 5cc6029 commit 44c00e0
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 73 deletions.
20 changes: 10 additions & 10 deletions docs/data-sources/l3out_node_sid_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ##

Expand All @@ -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"
}
```
Expand All @@ -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.
Expand Down
32 changes: 16 additions & 16 deletions docs/resources/l3out_node_sid_profile.md
Original file line number Diff line number Diff line change
Expand Up @@ -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



Expand All @@ -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.

Expand All @@ -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"
Expand All @@ -70,28 +70,28 @@ 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 ##

### Required ###

* `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.

Expand All @@ -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:

```
Expand Down
Original file line number Diff line number Diff line change
@@ -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"
}
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion examples/resources/aci_l3out_node_sid_profile/resource.tf
Original file line number Diff line number Diff line change
@@ -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"
}
15 changes: 8 additions & 7 deletions gen/definitions/properties.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ global:
descr: "description"
resource_name_doc_overwrite:
Vrf: VRF
Sid: "SR-MPLS Segment ID"
ignores:
- "userdom"

Expand Down Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions gen/testvars/mplsNodeSidP.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
16 changes: 8 additions & 8 deletions internal/provider/data_source_aci_l3out_node_sid_profile.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions internal/provider/resource_aci_l3out_node_sid_profile.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 44c00e0

Please sign in to comment.