Skip to content

Commit

Permalink
[minor_changes] Added attributes pc_tag and scope to fvCtx
Browse files Browse the repository at this point in the history
  • Loading branch information
abrahammughal committed Jun 18, 2024
1 parent 5f5cc63 commit 3ea14e4
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
12 changes: 12 additions & 0 deletions aci/data_source_aci_fvctx.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ func dataSourceAciVRF() *schema.Resource {
Required: true,
},

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

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

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

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

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

"bd_enforced_enable": &schema.Schema{
Type: schema.TypeString,
Optional: true,
Expand Down Expand Up @@ -213,6 +225,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` - (Optional) A numeric ID to represent an EPG.
- `scope` - (Optional) A numeric value for other APICs to identify 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` - (Optional) A numeric ID to represent an EPG.
- `scope` - (Optional) A numeric value for other APICs to identify 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: 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` - (Optional) A numeric ID to represent an EPG.
- `scope` - (Optional) A numeric value for other APICs to identify 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` - (Optional) A numeric ID to represent an EPG.
- `scope` - (Optional) A numeric value for other APICs to identify 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

0 comments on commit 3ea14e4

Please sign in to comment.