Skip to content

Commit 2b4ef6c

Browse files
akinrosslhercot
authored andcommitted
[ignore] Add read-only attributes to aci_vrf resource
1 parent dcf9ae9 commit 2b4ef6c

File tree

8 files changed

+311
-58
lines changed

8 files changed

+311
-58
lines changed

docs/data-sources/vrf.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ data "aci_vrf" "example_tenant" {
5757
* `owner_tag` (ownerTag) - (string) A tag for enabling clients to add their own data. For example, to indicate who created this object.
5858
* `policy_control_enforcement_direction` (pcEnfDir) - (string) The policy control enforcement direction of the VRF object. VRF ingress policy enforcement involves ACL filtering on the leaf switch where the endpoint is located, reducing the policy CAM usage on the border leaf switch by confining the filtering to 'compute' leaf switches. VRF egress policy enforcement extends ACL filtering to the border leaf switch, increasing its policy CAM usage. The border leaf switch handles filtering for traffic from L3Out to EPG after the endpoint is learned, unless the endpoint-to-destination class mapping is unknown, in which case the compute leaf switch handles the filtering. This attribute is supported in ACI versions: 1.2(1i) and later.
5959
* `policy_control_enforcement_mode` (pcEnfPref) - (string) The policy control enforcement mode of the VRF object. VRFs in unenforced mode do not restrict traffic between EPGs that are member of the VRF. VRFs in enforced mode restrict traffic not allowed by contracts between EPGs that are member of the VRF. The policy control enforcement direction is used to determine the preferred enforcement method.
60+
* `pc_tag` (pcTag) - (string) The classification tag used for policy enforcement and zoning.
61+
* `scope` (scope) - (string) The scope ID (L3-VNI) of the VRF object.
6062
* `relation_to_bgp_timers` - (map) A map of Relation To BGP Timers (ACI object [fvRsBgpCtxPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/fvRsBgpCtxPol/overview)) pointing to BGP Timers (ACI Object [bgpCtxPol](https://pubhub.devnetcloud.com/media/model-doc-latest/docs/app/index.html#/objects/bgpCtxPol/overview)).
6163
* `annotation` (annotation) - (string) The annotation of the Relation To BGP Timers object. This attribute is supported in ACI versions: 3.2(1l) and later.
6264
* `bgp_timers_name` (tnBgpCtxPolName) - (string) The name of the BGP timers policy associated with this context.

docs/resources/vrf.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,9 @@ All examples for the VRF resource can be found in the [examples](https://github.
241241
### Read-Only ###
242242

243243
* `id` - (string) The distinguished name (DN) of the VRF object.
244+
* `pc_tag` (pcTag) - (string) The classification tag used for policy enforcement and zoning.
245+
* `scope` (scope) - (string) The scope ID (L3-VNI) of the VRF object.
246+
- Default: `0`
244247

245248
### Optional ###
246249

gen/definitions/properties.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2234,10 +2234,16 @@ fvCtx:
22342234
ipDataPlaneLearning: "The IP data plane status of the %s object. The process known as IP data plane learning involves acquiring the endpoint's IPv4 or IPv6 address through data plane routing of traffic from the endpoint."
22352235
pcEnfDir: "The policy control enforcement direction of the %s object. VRF ingress policy enforcement involves ACL filtering on the leaf switch where the endpoint is located, reducing the policy CAM usage on the border leaf switch by confining the filtering to 'compute' leaf switches. VRF egress policy enforcement extends ACL filtering to the border leaf switch, increasing its policy CAM usage. The border leaf switch handles filtering for traffic from L3Out to EPG after the endpoint is learned, unless the endpoint-to-destination class mapping is unknown, in which case the compute leaf switch handles the filtering."
22362236
pcEnfPref: "The policy control enforcement mode of the %s object. VRFs in unenforced mode do not restrict traffic between EPGs that are member of the VRF. VRFs in enforced mode restrict traffic not allowed by contracts between EPGs that are member of the VRF. The policy control enforcement direction is used to determine the preferred enforcement method."
2237+
scope: "The scope ID (L3-VNI) of the %s object."
22372238
ignores:
22382239
- "knwMcastAct"
22392240
- "vrfIndex"
2241+
read_only_properties:
2242+
- "pcTag"
2243+
- "scope"
22402244
remove_valid_values:
2245+
pcTag:
2246+
- "any"
22412247
pcEnfDir:
22422248
- "mixed"
22432249
overwrites:

gen/testvars/fvCtx.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ default:
3434
policy_control_enforcement_direction: "ingress"
3535
policy_control_enforcement_mode: "enforced"
3636
version_mismatch:
37-
4.0(1h):
37+
4.0(1h)-:
3838
ip_data_plane_learning: "enabled"
3939

4040
datasource_non_existing:
@@ -46,6 +46,10 @@ datasource_required:
4646
resource_required:
4747
name: "test_name"
4848

49+
read_only:
50+
- "pc_tag"
51+
- "scope"
52+
4953
all:
5054
annotation: "annotation"
5155
bd_enforcement: "no"
@@ -56,7 +60,7 @@ all:
5660
policy_control_enforcement_direction: "egress"
5761
policy_control_enforcement_mode: "enforced"
5862
version_mismatch:
59-
4.0(1h):
63+
4.0(1h)-:
6064
ip_data_plane_learning: "disabled"
6165

6266
children:

internal/provider/data_source_aci_vrf.go

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

internal/provider/data_source_aci_vrf_test.go

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

0 commit comments

Comments
 (0)