Skip to content

Commit

Permalink
add 4 new FT's | GRE Int , Cellular Int, Cellular Controller, Cellula…
Browse files Browse the repository at this point in the history
…r Profile (#74)

- add support for sdwan_cellular_controller_feature_template resource
- add support for sdwan_cellular_cedge_profile_feature_template resource
- add support for sdwan_cisco_vpn_interface_gre_feature_template resource
- add support for sdwan_cellular_cedge_profile_feature_template resource
  • Loading branch information
rrahimm authored Jan 16, 2025
1 parent f360061 commit b8bc89e
Show file tree
Hide file tree
Showing 4 changed files with 317 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@
- add support for sdwan_transport_wan_vpn_interface_ethernet_feature_associate_tracker_group_feature resource
- add support for sdwan_transport_wan_vpn_interface_ethernet_feature_associate_ipv6_tracker_feature resource
- add support for sdwan_transport_wan_vpn_interface_ethernet_feature_associate_ipv6_tracker_group_feature resource
- add support for sdwan_cellular_controller_feature_template resource
- add support for sdwan_cellular_cedge_profile_feature_template resource
- add support for sdwan_cisco_vpn_interface_gre_feature_template resource
- add support for sdwan_vpn_interface_cellular_feature_template resource

## 0.1.0

Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ module "sdwan" {
| [sdwan_attach_feature_device_template.attach_feature_device_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/attach_feature_device_template) | resource |
| [sdwan_cedge_aaa_feature_template.cedge_aaa_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cedge_aaa_feature_template) | resource |
| [sdwan_cedge_global_feature_template.cedge_global_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cedge_global_feature_template) | resource |
| [sdwan_cellular_cedge_profile_feature_template.cellular_cedge_profile_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cellular_cedge_profile_feature_template) | resource |
| [sdwan_cellular_controller_feature_template.cellular_controller_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cellular_controller_feature_template) | resource |
| [sdwan_centralized_policy.centralized_policy](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/centralized_policy) | resource |
| [sdwan_cflowd_policy_definition.cflowd_policy_definition](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cflowd_policy_definition) | resource |
| [sdwan_cisco_banner_feature_template.cisco_banner_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cisco_banner_feature_template) | resource |
Expand All @@ -98,6 +100,7 @@ module "sdwan" {
| [sdwan_cisco_thousandeyes_feature_template.cisco_thousandeyes_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cisco_thousandeyes_feature_template) | resource |
| [sdwan_cisco_vpn_feature_template.cisco_vpn_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cisco_vpn_feature_template) | resource |
| [sdwan_cisco_vpn_interface_feature_template.cisco_vpn_interface_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cisco_vpn_interface_feature_template) | resource |
| [sdwan_cisco_vpn_interface_gre_feature_template.cisco_vpn_interface_gre_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cisco_vpn_interface_gre_feature_template) | resource |
| [sdwan_cisco_vpn_interface_ipsec_feature_template.cisco_vpn_interface_ipsec_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cisco_vpn_interface_ipsec_feature_template) | resource |
| [sdwan_class_map_policy_object.class_map_policy_object](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/class_map_policy_object) | resource |
| [sdwan_cli_config_feature.cli_config_feature](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/cli_config_feature) | resource |
Expand Down Expand Up @@ -183,6 +186,7 @@ module "sdwan" {
| [sdwan_transport_wan_vpn_interface_ethernet_feature_associate_ipv6_tracker_group_feature.transport_wan_vpn_interface_ethernet_feature_associate_ipv6_tracker_group_feature](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/transport_wan_vpn_interface_ethernet_feature_associate_ipv6_tracker_group_feature) | resource |
| [sdwan_transport_wan_vpn_interface_ethernet_feature_associate_tracker_feature.transport_wan_vpn_interface_ethernet_feature_associate_tracker_feature](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/transport_wan_vpn_interface_ethernet_feature_associate_tracker_feature) | resource |
| [sdwan_transport_wan_vpn_interface_ethernet_feature_associate_tracker_group_feature.transport_wan_vpn_interface_ethernet_feature_associate_tracker_group_feature](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/transport_wan_vpn_interface_ethernet_feature_associate_tracker_group_feature) | resource |
| [sdwan_vpn_interface_cellular_feature_template.vpn_interface_cellular_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/vpn_interface_cellular_feature_template) | resource |
| [sdwan_vpn_interface_svi_feature_template.vpn_interface_svi_feature_template](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/vpn_interface_svi_feature_template) | resource |
| [sdwan_vpn_list_policy_object.vpn_list_policy_object](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/vpn_list_policy_object) | resource |
| [sdwan_vpn_membership_policy_definition.vpn_membership_policy_definition](https://registry.terraform.io/providers/CiscoDevNet/sdwan/latest/docs/resources/vpn_membership_policy_definition) | resource |
Expand Down
22 changes: 22 additions & 0 deletions sdwan_device_templates.tf
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,16 @@ resource "sdwan_feature_device_template" "feature_device_template" {
version = sdwan_cisco_secure_internet_gateway_feature_template.cisco_secure_internet_gateway_feature_template[each.value.vpn_0_template.secure_internet_gateway_template].version
type = "cisco_secure_internet_gateway"
}],
try(each.value.vpn_0_template.gre_interface_templates, null) == null ? [] : [for sit in try(each.value.vpn_0_template.gre_interface_templates, []) : {
id = sdwan_cisco_vpn_interface_gre_feature_template.cisco_vpn_interface_gre_feature_template[sit.name].id
version = sdwan_cisco_vpn_interface_gre_feature_template.cisco_vpn_interface_gre_feature_template[sit.name].version
type = "cisco_vpn_interface_gre"
}],
try(each.value.vpn_0_template.cellular_interface_templates, null) == null ? [] : [for sit in try(each.value.vpn_0_template.cellular_interface_templates, []) : {
id = sdwan_vpn_interface_cellular_feature_template.vpn_interface_cellular_feature_template[sit.name].id
version = sdwan_vpn_interface_cellular_feature_template.vpn_interface_cellular_feature_template[sit.name].version
type = "vpn-cedge-interface-cellular"
}],
])
}],
try(each.value.vpn_512_template, null) == null ? [] : [{
Expand Down Expand Up @@ -205,6 +215,18 @@ resource "sdwan_feature_device_template" "feature_device_template" {
}],
])
}],
try(each.value.cellular_controller_templates, null) == null ? [] : [for st in try(each.value.cellular_controller_templates, []) : {
id = sdwan_cellular_controller_feature_template.cellular_controller_feature_template[st.name].id
version = sdwan_cellular_controller_feature_template.cellular_controller_feature_template[st.name].version
type = "cellular-cedge-controller"
sub_templates = !(can(st.cellular_profile_templates)) ? null : flatten([
try(st.cellular_profile_templates, null) == null ? [] : [for eit in try(st.cellular_profile_templates, []) : {
id = sdwan_cellular_cedge_profile_feature_template.cellular_cedge_profile_feature_template[eit.name].id
version = sdwan_cellular_cedge_profile_feature_template.cellular_cedge_profile_feature_template[eit.name].version
type = "cellular-cedge-profile"
}],
])
}]
])
lifecycle {
create_before_destroy = true
Expand Down
Loading

0 comments on commit b8bc89e

Please sign in to comment.