Skip to content

Commit 9a374d0

Browse files
gmicollhercot
authored andcommitted
[ignore] Fix Documentation for imported_logical_device resource. Fix test for data source.
1 parent f76aa0a commit 9a374d0

File tree

8 files changed

+41
-36
lines changed

8 files changed

+41
-36
lines changed

docs/data-sources/imported_logical_device.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@ data "aci_imported_logical_device" "example_tenant" {
4343

4444
* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
4545
- [aci_tenant](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tenant) ([fvTenant](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvTenant/overview))
46-
* `logical_device` (ldev) - (string) The distinguished name (DN) of the logical device to export.
46+
* `logical_device` (ldev) - (string) The distinguished name (DN) of the Logical Device to import.
4747

4848
### Read-Only ###
4949

5050
* `id` - (string) The distinguished name (DN) of the Imported Logical Device object.
5151
* `annotation` (annotation) - (string) The annotation of the Imported Logical Device object. This attribute is supported in ACI versions: 3.2(1l) and later.
52-
* `description` (description) - (string) A description of this configuration item.
52+
* `description` (description) - (string) The description of the Imported Logical Device object.
5353
* `name` (name) - (string) The name of the Imported Logical Device object.
5454
* `name_alias` (nameAlias) - (string) The name alias of the Imported Logical Device object. This attribute is supported in ACI versions: 2.2(1k) and later.
5555
* `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.

docs/resources/imported_logical_device.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ All examples for the Imported Logical Device resource can be found in the [examp
7777

7878
* `parent_dn` - (string) The distinguished name (DN) of the parent object, possible resources:
7979
- [aci_tenant](https://registry.terraform.io/providers/CiscoDevNet/aci/latest/docs/resources/tenant) ([fvTenant](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvTenant/overview))
80-
* `logical_device` (ldev) - (string) The distinguished name (DN) of the logical device to export.
80+
* `logical_device` (ldev) - (string) The distinguished name (DN) of the Logical Device to import.
8181

8282
### Read-Only ###
8383

@@ -87,7 +87,7 @@ All examples for the Imported Logical Device resource can be found in the [examp
8787

8888
* `annotation` (annotation) - (string) The annotation of the Imported Logical Device object. This attribute is supported in ACI versions: 3.2(1l) and later.
8989
- Default: `orchestrator:terraform`
90-
* `description` (description) - (string) A description of this configuration item.
90+
* `description` (description) - (string) The description of the Imported Logical Device object.
9191
* `name` (name) - (string) The name of the Imported Logical Device object.
9292
* `name_alias` (nameAlias) - (string) The name alias of the Imported Logical Device object. This attribute is supported in ACI versions: 2.2(1k) and later.
9393
* `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.

gen/definitions/properties.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2727,13 +2727,18 @@ vnsLDevIf:
27272727
overwrites:
27282728
ldev: "logical_device"
27292729
documentation:
2730-
ldev: "The distinguished name (DN) of the logical device to export."
2730+
ldev: "The distinguished name (DN) of the Logical Device to import."
2731+
description: "The description of the Imported Logical Device object."
27312732
example_value_overwrite:
27322733
logical_device: "aci_l4_l7_device.example_in_another_tenant.id"
27332734
test_values:
27342735
default:
2735-
logical_device: "uni/tn-test_tenant/lDevVip-test_ldevvip"
2736+
logical_device: "uni/tn-test_tenant/lDevVip-test_imported_device"
27362737
resource_required:
2737-
logical_device: "uni/tn-test_tenant/lDevVip-test_ldevvip"
2738+
logical_device: "uni/tn-test_tenant/lDevVip-test_imported_device"
27382739
all:
2739-
logical_device: "uni/tn-test_tenant/lDevVip-test_ldevvip"
2740+
logical_device: "uni/tn-test_tenant/lDevVip-test_imported_device"
2741+
datasource_non_existing:
2742+
logical_device: "uni/tn-test_tenant/lDevVip-test_imported_device"
2743+
datasource_required:
2744+
logical_device: "uni/tn-test_tenant/lDevVip-test_imported_device"

gen/testvars/vnsLDevIf.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ default:
1010
name_alias: ""
1111

1212
datasource_non_existing:
13-
logical_device: "non_existing_ldev"
13+
logical_device: "uni/tn-test_tenant/lDevVip-test_imported_device"
1414

1515
datasource_required:
16-
logical_device: "test_ldev"
16+
logical_device: "uni/tn-test_tenant/lDevVip-test_imported_device"
1717

1818
resource_required:
19-
logical_device: "uni/tn-test_tenant/lDevVip-test_ldevvip"
19+
logical_device: "uni/tn-test_tenant/lDevVip-test_imported_device"
2020

2121
all:
2222
annotation: "annotation"

internal/provider/data_source_aci_imported_logical_device.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/data_source_aci_imported_logical_device_test.go

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_aci_imported_logical_device.go

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_aci_imported_logical_device_test.go

Lines changed: 18 additions & 18 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)