Skip to content

Commit

Permalink
[minor_change] Added attributes pc_tag and scope to aci_vrf (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahammughal authored Jul 2, 2024
1 parent 2d8ffe2 commit e32ebc3
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 4 deletions.
10 changes: 10 additions & 0 deletions aci/data_source_aci_fvctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,16 @@ func dataSourceAciVRF() *schema.Resource {
Required: true,
},

"pc_tag": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},

"scope": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},

"bd_enforced_enable": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Expand Down
12 changes: 12 additions & 0 deletions aci/resource_aci_fvctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,16 @@ func resourceAciVRF() *schema.Resource {
ForceNew: true,
},

"pc_tag": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},

"scope": &schema.Schema{
Type: schema.TypeString,
Computed: true,
},

"bd_enforced_enable": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -213,6 +223,8 @@ func setVRFAttributes(fvCtx *models.VRF, d *schema.ResourceData) (*schema.Resour
d.Set("name", fvCtxMap["name"])

d.Set("annotation", fvCtxMap["annotation"])
d.Set("scope", fvCtxMap["scope"])
d.Set("pc_tag", fvCtxMap["pcTag"])
d.Set("bd_enforced_enable", fvCtxMap["bdEnforcedEnable"])
d.Set("ip_data_plane_learning", fvCtxMap["ipDataPlaneLearning"])
d.Set("knw_mcast_act", fvCtxMap["knwMcastAct"])
Expand Down
2 changes: 2 additions & 0 deletions docs/data-sources/vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ data "aci_vrf" "dev_ctx" {

- `id` - Attribute id set to the Dn of the VRF.
- `annotation` - (Optional) Annotation tags for object VRF.
- `pc_tag` - (Read-Only) A numeric ID to represent a policy enforcement group.
- `scope` - (Read-Only) A numeric value for other APICs to identify a specific VRF.
- `description` - (Optional) Description tags for object VRF.
- `bd_enforced_enable` - (Optional) Flag to enable/disable enforced bridge domain for VRF.
- `ip_data_plane_learning` - (Optional) Flag to enable/disable IP-data-plane learning for VRF.
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/vrf.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ resource "aci_vrf" "foovrf" {
- `tenant_dn` - (Required) Distinguished name of parent Tenant object.
- `name` - (Required) Name of Object VRF.
- `annotation` - (Optional) Annotation tags for object VRF.
- `pc_tag` - (Read-Only) A numeric ID to represent a policy enforcement group.
- `scope` - (Read-Only) A numeric value for other APICs to identify a specific VRF.
- `description` - (Optional) Description tags for object VRF.
- `bd_enforced_enable` - (Optional) Flag to enable/disable enforced bridge domain for VRF. Allowed values are "yes" and "no". Default is "no".
- `ip_data_plane_learning` - (Optional) Flag to enable/disable IP-data-plane learning for VRF. Allowed values are "enabled" and "disabled". Default is "enabled".
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.21
toolchain go1.21.5

require (
github.com/ciscoecosystem/aci-go-client/v2 v2.28.2
github.com/ciscoecosystem/aci-go-client/v2 v2.29.0
github.com/ghodss/yaml v1.0.0
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
github.com/hashicorp/hcl/v2 v2.20.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ github.com/apparentlymart/go-textseg/v15 v15.0.0 h1:uYvfpb3DyLSCGWnctWKGj857c6ew
github.com/apparentlymart/go-textseg/v15 v15.0.0/go.mod h1:K8XmNZdhEBkdlyDdvbmmsvpAG721bKi0joRfFdHIWJ4=
github.com/bufbuild/protocompile v0.4.0 h1:LbFKd2XowZvQ/kajzguUp2DC9UEIQhIq77fZZlaQsNA=
github.com/bufbuild/protocompile v0.4.0/go.mod h1:3v93+mbWn/v3xzN+31nwkJfrEpAUwp+BagBSZWx+TP8=
github.com/ciscoecosystem/aci-go-client/v2 v2.28.2 h1:qqglP7joOunBd4JWMKqbqenFfdQfwPAc1JlLzbRZdlI=
github.com/ciscoecosystem/aci-go-client/v2 v2.28.2/go.mod h1:NE95j9SraYejTJWqC1SzetCtQ306vQuFIPBbcvm+Hgk=
github.com/ciscoecosystem/aci-go-client/v2 v2.29.0 h1:OCZsWt5uFu7qAdf3YETqHukYTHrSGD23+bavknM7oC8=
github.com/ciscoecosystem/aci-go-client/v2 v2.29.0/go.mod h1:NE95j9SraYejTJWqC1SzetCtQ306vQuFIPBbcvm+Hgk=
github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU=
github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA=
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
Expand Down
2 changes: 2 additions & 0 deletions legacy-docs/docs/d/vrf.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ data "aci_vrf" "dev_ctx" {

- `id` - Attribute id set to the Dn of the VRF.
- `annotation` - (Optional) Annotation tags for object VRF.
- `pc_tag` - (Read-Only) A numeric ID to represent a policy enforcement group.
- `scope` - (Read-Only) A numeric value for other APICs to identify a specific VRF.
- `description` - (Optional) Description tags for object VRF.
- `bd_enforced_enable` - (Optional) Flag to enable/disable enforced bridge domain for VRF.
- `ip_data_plane_learning` - (Optional) Flag to enable/disable IP-data-plane learning for VRF.
Expand Down
2 changes: 2 additions & 0 deletions legacy-docs/docs/r/vrf.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ resource "aci_vrf" "foovrf" {
- `tenant_dn` - (Required) Distinguished name of parent Tenant object.
- `name` - (Required) Name of Object VRF.
- `annotation` - (Optional) Annotation tags for object VRF.
- `pc_tag` - (Read-Only) A numeric ID to represent a policy enforcement group.
- `scope` - (Read-Only) A numeric value for other APICs to identify a specific VRF.
- `description` - (Optional) Description tags for object VRF.
- `bd_enforced_enable` - (Optional) Flag to enable/disable enforced bridge domain for VRF. Allowed values are "yes" and "no". Default is "no".
- `ip_data_plane_learning` - (Optional) Flag to enable/disable IP-data-plane learning for VRF. Allowed values are "enabled" and "disabled". Default is "enabled".
Expand Down
12 changes: 12 additions & 0 deletions vendor/github.com/ciscoecosystem/aci-go-client/v2/models/fv_ctx.go

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

2 changes: 1 addition & 1 deletion vendor/modules.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ github.com/agext/levenshtein
# github.com/apparentlymart/go-textseg/v15 v15.0.0
## explicit; go 1.16
github.com/apparentlymart/go-textseg/v15/textseg
# github.com/ciscoecosystem/aci-go-client/v2 v2.28.2
# github.com/ciscoecosystem/aci-go-client/v2 v2.29.0
## explicit; go 1.21
github.com/ciscoecosystem/aci-go-client/v2/client
github.com/ciscoecosystem/aci-go-client/v2/container
Expand Down

0 comments on commit e32ebc3

Please sign in to comment.