You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add anycast gateway resource and data source (#99)
* added GenerateQueryParamString templating helper function
* use create_query_path instead of query_param in Create and Update function (api/)
* add query_param_no_body and data_source_no_id attributes
query_param_no_body: bool(required=False) # Set to true if the attribute is a query parameter and not part of the body
data_source_no_id: bool(required=False) # Set to true if id in data source should be optional
* add import_no_id attribute, if import does not require and ID
* add anycast_gateway
* update changelog
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
## 0.1.10 (unreleased)
2
2
3
+
- Add `anycast_gateway` resource and data source, this resource now only works with Catalyst Center version 2.3.7.5+ `/sda/anycastGateways`
3
4
- BREAKING CHANGE: Modified `fabric_site` resource to use `/dna/intent/api/v1/sda/fabricSites` API endpoint, this resource now only works with Catalyst Center version 2.3.7.5+
4
5
- Fix issue with mandatory attributes in `transit_peer_network` resource, [link](https://github.com/CiscoDevNet/terraform-provider-catalystcenter/issues/92)
5
6
- BREAKING CHANGE: Fix `ip_pool` update if more than 25 pools are registered
-`fabric_id` (String) ID of the fabric to contain this anycast gateway
29
+
-`ip_pool_name` (String) Name of the IP pool associated with the anycast gateway
30
+
-`virtual_network_name` (String) Name of the layer 3 virtual network associated with the anycast gateway. the virtual network must have already been added to the site before creating an anycast gateway with it
31
+
32
+
### Read-Only
33
+
34
+
-`auto_generate_vlan_name` (Boolean) This field cannot be true when vlanName is provided. the vlanName will be generated as ipPoolGroupV4Cidr-virtualNetworkName for non-critical VLANs. for critical VLANs with DATA trafficType, vlanName will be CRITICAL_VLAN. for critical VLANs with VOICE trafficType, vlanName will be VOICE_VLAN
35
+
-`critical_pool` (Boolean) Enable/disable critical VLAN. if true, autoGenerateVlanName must also be true. (isCriticalPool is not applicable to INFRA_VN)
36
+
-`id` (String) The id of the object
37
+
-`intra_subnet_routing_enabled` (Boolean) Enable/disable Intra-Subnet Routing (not applicable to INFRA_VN)
38
+
-`ip_directed_broadcast` (Boolean) Enable/disable IP-directed broadcast (not applicable to INFRA_VN)
39
+
-`l2_flooding_enabled` (Boolean) Enable/disable layer 2 flooding (not applicable to INFRA_VN)
40
+
-`multiple_ip_to_mac_addresses` (Boolean) Enable/disable multiple IP-to-MAC Addresses (Wireless Bridged-Network Virtual Machine; not applicable to INFRA_VN)
41
+
-`pool_type` (String) The pool type of the anycast gateway (required for & applicable only to INFRA_VN)
42
+
-`security_group_name` (String) Name of the associated Security Group (not applicable to INFRA_VN)
43
+
-`supplicant_based_extended_node_onboarding` (Boolean) Enable/disable Supplicant-Based Extended Node Onboarding (applicable only to INFRA_VN)
44
+
-`tcp_mss_adjustment` (Number) TCP maximum segment size adjustment
45
+
-`traffic_type` (String) The type of traffic the anycast gateway serves
46
+
-`vlan_id` (Number) ID of the VLAN of the anycast gateway. allowed VLAN range is 2-4093 except for reserved VLANs 1002-1005, 2046, and 4094. if deploying an anycast gateway on a fabric zone, this vlanId must match the vlanId of the corresponding anycast gateway on the fabric site
47
+
-`vlan_name` (String) Name of the VLAN of the anycast gateway
48
+
-`wireless_pool` (Boolean) Enable/disable fabric-enabled wireless (not applicable to INFRA_VN)
Copy file name to clipboardExpand all lines: docs/guides/changelog.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,7 @@ description: |-
9
9
10
10
## 0.1.10 (unreleased)
11
11
12
+
- Add `anycast_gateway` resource and data source, this resource now only works with Catalyst Center version 2.3.7.5+ `/sda/anycastGateways`
12
13
- BREAKING CHANGE: Modified `fabric_site` resource to use `/dna/intent/api/v1/sda/fabricSites` API endpoint, this resource now only works with Catalyst Center version 2.3.7.5+
13
14
- Fix issue with mandatory attributes in `transit_peer_network` resource, [link](https://github.com/CiscoDevNet/terraform-provider-catalystcenter/issues/92)
14
15
- BREAKING CHANGE: Fix `ip_pool` update if more than 25 pools are registered
-`critical_pool` (Boolean) Enable/disable critical VLAN. if true, autoGenerateVlanName must also be true. (isCriticalPool is not applicable to INFRA_VN)
39
+
-`fabric_id` (String) ID of the fabric to contain this anycast gateway
40
+
-`intra_subnet_routing_enabled` (Boolean) Enable/disable Intra-Subnet Routing (not applicable to INFRA_VN)
41
+
-`ip_directed_broadcast` (Boolean) Enable/disable IP-directed broadcast (not applicable to INFRA_VN)
42
+
-`ip_pool_name` (String) Name of the IP pool associated with the anycast gateway
43
+
-`l2_flooding_enabled` (Boolean) Enable/disable layer 2 flooding (not applicable to INFRA_VN)
44
+
-`multiple_ip_to_mac_addresses` (Boolean) Enable/disable multiple IP-to-MAC Addresses (Wireless Bridged-Network Virtual Machine; not applicable to INFRA_VN)
45
+
-`traffic_type` (String) The type of traffic the anycast gateway serves
46
+
- Choices: `DATA`, `VOICE`
47
+
-`virtual_network_name` (String) Name of the layer 3 virtual network associated with the anycast gateway. the virtual network must have already been added to the site before creating an anycast gateway with it
48
+
-`vlan_name` (String) Name of the VLAN of the anycast gateway
49
+
-`wireless_pool` (Boolean) Enable/disable fabric-enabled wireless (not applicable to INFRA_VN)
50
+
51
+
### Optional
52
+
53
+
-`auto_generate_vlan_name` (Boolean) This field cannot be true when vlanName is provided. the vlanName will be generated as ipPoolGroupV4Cidr-virtualNetworkName for non-critical VLANs. for critical VLANs with DATA trafficType, vlanName will be CRITICAL_VLAN. for critical VLANs with VOICE trafficType, vlanName will be VOICE_VLAN
54
+
-`pool_type` (String) The pool type of the anycast gateway (required for & applicable only to INFRA_VN)
55
+
- Choices: `EXTENDED_NODE`, `FABRIC_AP`
56
+
-`security_group_name` (String) Name of the associated Security Group (not applicable to INFRA_VN)
57
+
-`supplicant_based_extended_node_onboarding` (Boolean) Enable/disable Supplicant-Based Extended Node Onboarding (applicable only to INFRA_VN)
58
+
-`tcp_mss_adjustment` (Number) TCP maximum segment size adjustment
59
+
- Range: `500`-`1440`
60
+
-`vlan_id` (Number) ID of the VLAN of the anycast gateway. allowed VLAN range is 2-4093 except for reserved VLANs 1002-1005, 2046, and 4094. if deploying an anycast gateway on a fabric zone, this vlanId must match the vlanId of the corresponding anycast gateway on the fabric site
description: ID of the fabric to contain this anycast gateway
21
+
type: String
22
+
example: 5e6f7b3a-2b0b-4a7d-8b1c-0d4b1cd5e1b1
23
+
test_value: catalystcenter_fabric_site.test.id
24
+
- model_name: virtualNetworkName
25
+
requires_replace: true
26
+
data_path: '0'
27
+
query_param: true
28
+
response_data_path: response.0.virtualNetworkName
29
+
type: String
30
+
mandatory: true
31
+
description: Name of the layer 3 virtual network associated with the anycast gateway. the virtual network must have already been added to the site before creating an anycast gateway with it
description: Name of the VLAN of the anycast gateway
58
+
mandatory: true
59
+
example: VLAN401
60
+
- model_name: vlanId
61
+
requires_replace: true
62
+
data_path: '0'
63
+
response_data_path: response.0.vlanId
64
+
type: Int64
65
+
description: ID of the VLAN of the anycast gateway. allowed VLAN range is 2-4093 except for reserved VLANs 1002-1005, 2046, and 4094. if deploying an anycast gateway on a fabric zone, this vlanId must match the vlanId of the corresponding anycast gateway on the fabric site
66
+
example: 401
67
+
- model_name: trafficType
68
+
data_path: '0'
69
+
response_data_path: response.0.trafficType
70
+
type: String
71
+
enum_values: [DATA, VOICE]
72
+
mandatory: true
73
+
description: The type of traffic the anycast gateway serves
74
+
example: DATA
75
+
- model_name: poolType
76
+
data_path: '0'
77
+
response_data_path: response.0.poolType
78
+
type: String
79
+
enum_values: [EXTENDED_NODE, FABRIC_AP]
80
+
description: The pool type of the anycast gateway (required for & applicable only to INFRA_VN)
81
+
exclude_test: true
82
+
- model_name: securityGroupName
83
+
data_path: '0'
84
+
response_data_path: response.0.securityGroupNames
85
+
type: String
86
+
description: Name of the associated Security Group (not applicable to INFRA_VN)
87
+
exclude_test: true
88
+
- model_name: isCriticalPool
89
+
requires_replace: true
90
+
data_path: '0'
91
+
response_data_path: response.0.isCriticalPool
92
+
tf_name: critical_pool
93
+
type: Bool
94
+
mandatory: true
95
+
description: Enable/disable critical VLAN. if true, autoGenerateVlanName must also be true. (isCriticalPool is not applicable to INFRA_VN)
description: 'This field cannot be true when vlanName is provided. the vlanName will be generated as ipPoolGroupV4Cidr-virtualNetworkName for non-critical VLANs. for critical VLANs with DATA trafficType, vlanName will be CRITICAL_VLAN. for critical VLANs with VOICE trafficType, vlanName will be VOICE_VLAN'
0 commit comments