Skip to content

Commit

Permalink
Fix device template issue
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy committed Nov 29, 2024
1 parent bf0a9fc commit 02063db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
6 changes: 3 additions & 3 deletions docs/resources/feature_device_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Required:

- `id` (String) Feature template ID
- `type` (String) Feature template type
- Choices: `cisco_system`, `cisco_logging`, `cedge_aaa`, `cisco_bfd`, `cisco_omp`, `cisco_security`, `cisco_banner`, `cisco_snmp`, `cedge_global`, `cli-template`, `cisco_sig_credentials`, `switchport`, `cisco_thousandeyes`, `cisco_vpn`, `virtual-application-utd`
- Choices: `cisco_system`, `cisco_logging`, `cedge_aaa`, `cisco_bfd`, `cisco_omp`, `cisco_security`, `cisco_banner`, `cisco_snmp`, `cedge_global`, `cli-template`, `cisco_sig_credentials`, `switchport`, `cisco_thousandeyes`, `cisco_vpn`, `virtual-application-utd`, `cellular-cedge-controller`

Optional:

Expand All @@ -71,7 +71,7 @@ Required:

- `id` (String) Feature template ID
- `type` (String) Feature template type
- Choices: `cisco_logging`, `cisco_ntp`, `cisco_ospf`, `cisco_bgp`, `cisco_vpn_interface`, `cisco_vpn_interface_ipsec`, `vpn-interface-svi`, `cisco_secure_internet_gateway`
- Choices: `cisco_logging`, `cisco_ntp`, `cisco_ospf`, `cisco_bgp`, `cisco_vpn_interface`, `cisco_vpn_interface_gre`, `cisco_vpn_interface_ipsec`, `vpn-interface-svi`, `vpn-cedge-interface-cellular`, `cisco_secure_internet_gateway`

Optional:

Expand All @@ -85,7 +85,7 @@ Required:

- `id` (String) Feature template ID
- `type` (String) Feature template type
- Choices: `cisco_dhcp_server`
- Choices: `cisco_dhcp_server`, `cellular-cedge-profile`

Optional:

Expand Down
5 changes: 4 additions & 1 deletion gen/definitions/generic/feature_device_template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ attributes:
cisco_thousandeyes,
cisco_vpn,
virtual-application-utd,
cellular-cedge-controller,
]
ignore_enum: true
description: Feature template type
Expand Down Expand Up @@ -137,8 +138,10 @@ attributes:
cisco_ospf,
cisco_bgp,
cisco_vpn_interface,
cisco_vpn_interface_gre,
cisco_vpn_interface_ipsec,
vpn-interface-svi,
vpn-cedge-interface-cellular,
cisco_secure_internet_gateway,
]
ignore_enum: true
Expand Down Expand Up @@ -166,7 +169,7 @@ attributes:
tf_name: type
type: String
mandatory: true
enum_values: [cisco_dhcp_server]
enum_values: [cisco_dhcp_server, cellular-cedge-profile]
ignore_enum: true
description: Feature template type
example: cisco_vpn_interface
Expand Down
6 changes: 3 additions & 3 deletions internal/provider/resource_sdwan_feature_device_template.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ func (r *FeatureDeviceTemplateResource) Schema(ctx context.Context, req resource
Optional: true,
},
"type": schema.StringAttribute{
MarkdownDescription: helpers.NewAttributeDescription("Feature template type").AddStringEnumDescription("cisco_system", "cisco_logging", "cedge_aaa", "cisco_bfd", "cisco_omp", "cisco_security", "cisco_banner", "cisco_snmp", "cedge_global", "cli-template", "cisco_sig_credentials", "switchport", "cisco_thousandeyes", "cisco_vpn", "virtual-application-utd").String,
MarkdownDescription: helpers.NewAttributeDescription("Feature template type").AddStringEnumDescription("cisco_system", "cisco_logging", "cedge_aaa", "cisco_bfd", "cisco_omp", "cisco_security", "cisco_banner", "cisco_snmp", "cedge_global", "cli-template", "cisco_sig_credentials", "switchport", "cisco_thousandeyes", "cisco_vpn", "virtual-application-utd", "cellular-cedge-controller").String,
Required: true,
},
"sub_templates": schema.SetNestedAttribute{
Expand All @@ -142,7 +142,7 @@ func (r *FeatureDeviceTemplateResource) Schema(ctx context.Context, req resource
Optional: true,
},
"type": schema.StringAttribute{
MarkdownDescription: helpers.NewAttributeDescription("Feature template type").AddStringEnumDescription("cisco_logging", "cisco_ntp", "cisco_ospf", "cisco_bgp", "cisco_vpn_interface", "cisco_vpn_interface_ipsec", "vpn-interface-svi", "cisco_secure_internet_gateway").String,
MarkdownDescription: helpers.NewAttributeDescription("Feature template type").AddStringEnumDescription("cisco_logging", "cisco_ntp", "cisco_ospf", "cisco_bgp", "cisco_vpn_interface", "cisco_vpn_interface_gre", "cisco_vpn_interface_ipsec", "vpn-interface-svi", "vpn-cedge-interface-cellular", "cisco_secure_internet_gateway").String,
Required: true,
},
"sub_templates": schema.SetNestedAttribute{
Expand All @@ -159,7 +159,7 @@ func (r *FeatureDeviceTemplateResource) Schema(ctx context.Context, req resource
Optional: true,
},
"type": schema.StringAttribute{
MarkdownDescription: helpers.NewAttributeDescription("Feature template type").AddStringEnumDescription("cisco_dhcp_server").String,
MarkdownDescription: helpers.NewAttributeDescription("Feature template type").AddStringEnumDescription("cisco_dhcp_server", "cellular-cedge-profile").String,
Required: true,
},
},
Expand Down

0 comments on commit 02063db

Please sign in to comment.