Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added attributes pc_tag and scope to fvCtx #1238

Merged
merged 7 commits into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
abrahammughal marked this conversation as resolved.
Show resolved Hide resolved
Computed: true,
},

"scope": &schema.Schema{
Type: schema.TypeString,
Optional: true,
abrahammughal marked this conversation as resolved.
Show resolved Hide resolved
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,
abrahammughal marked this conversation as resolved.
Show resolved Hide resolved
Computed: true,
},

"scope": &schema.Schema{
Type: schema.TypeString,
Optional: true,
abrahammughal marked this conversation as resolved.
Show resolved Hide resolved
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"])
abrahammughal marked this conversation as resolved.
Show resolved Hide resolved
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.
abrahammughal marked this conversation as resolved.
Show resolved Hide resolved
- `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.
abrahammughal marked this conversation as resolved.
Show resolved Hide resolved
- `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.
abrahammughal marked this conversation as resolved.
Show resolved Hide resolved
- `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