Skip to content

Commit 9dda63e

Browse files
AshuSoni-crestlhercot
authored andcommitted
issue #344 made default value for management_profile_dn - uni/tn-mgmt/mgmtp-default
1 parent e4786a4 commit 9dda63e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

aci/data_source_aci_nodemgmtepg.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ func dataSourceAciNodeManagementEPg() *schema.Resource {
2828

2929
"management_profile_dn": &schema.Schema{
3030
Type: schema.TypeString,
31-
Required: true,
31+
Optional: true,
32+
Default: "uni/tn-mgmt/mgmtp-default",
3233
},
3334

3435
"name": &schema.Schema{

aci/resource_aci_nodemgmtepg.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ func resourceAciNodeManagementEPg() *schema.Resource {
4141

4242
"management_profile_dn": &schema.Schema{
4343
Type: schema.TypeString,
44-
Required: true,
45-
ForceNew: true,
44+
Optional: true,
45+
Default: "uni/tn-mgmt/mgmtp-default",
4646
},
4747

4848
"name": &schema.Schema{

website/docs/d/node_mgmt_epg.markdown

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,11 @@ Data source for ACI Node Management EPg
1616
1717
data "aci_node_mgmt_epg" "example" {
1818
type = "in_band"
19-
management_profile_dn = "uni/tn-mgmt/mgmtp-default"
2019
name = "example"
2120
}
2221
2322
data "aci_node_mgmt_epg" "example" {
2423
type = "out_of_band"
25-
management_profile_dn = "uni/tn-mgmt/mgmtp-default"
2624
name = "example"
2725
}
2826
@@ -32,11 +30,12 @@ data "aci_node_mgmt_epg" "example" {
3230

3331
- `type` - (Required) Type of node management EPg to be configured.
3432
Allowed values: "in_band", "out_of_band".
35-
- `management_profile_dn` - (Required) Distinguished name of parent management profile object.
3633
- `name` - (Required) Name of Object node management EPg.
3734

3835
## Attribute Reference
3936

37+
- `management_profile_dn` - (Optional) Distinguished name of parent management profile object. Default value: "uni/tn-mgmt/mgmtp-default".
38+
4039
### `type = "in_band"`
4140

4241
- `id` - Attribute id set to the Dn of the Node Management EPg.

website/docs/r/node_mgmt_epg.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ resource "aci_node_mgmt_epg" "out_of_band_example" {
4343

4444
- `type` - (Required) Type of node management EPg to be configured.
4545
Allowed values: "in_band", "out_of_band".
46-
- `management_profile_dn` - (Required) Distinguished name of parent management profile object.
46+
- `management_profile_dn` - (Optional) Distinguished name of parent management profile object. Default value: "uni/tn-mgmt/mgmtp-default".
4747

4848
### `type = "in_band"`
4949

0 commit comments

Comments
 (0)