Skip to content

Commit

Permalink
Add support for tracker and route features where missing (CiscoDevNet…
Browse files Browse the repository at this point in the history
  • Loading branch information
seconroy authored Oct 16, 2024
1 parent 12a4181 commit 40d434c
Show file tree
Hide file tree
Showing 22 changed files with 651 additions and 93 deletions.
13 changes: 13 additions & 0 deletions docs/data-sources/service_lan_vpn_interface_ethernet_feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ Read-Only:
- `tloc_pref_change_value` (Number) Timer interval for successive advertisements, in milliseconds
- `tloc_prefix_change` (Boolean) Timer interval for successive advertisements, in milliseconds
- `track_omp` (Boolean) Track OMP status
- `tracking_objects` (Attributes List) Tracking object for VRRP configuration (see [below for nested schema](#nestedatt--ipv4_vrrps--tracking_objects))

<a id="nestedatt--ipv4_vrrps--secondary_addresses"></a>
### Nested Schema for `ipv4_vrrps.secondary_addresses`
Expand All @@ -171,6 +172,18 @@ Read-Only:
- `subnet_mask_variable` (String) Variable name


<a id="nestedatt--ipv4_vrrps--tracking_objects"></a>
### Nested Schema for `ipv4_vrrps.tracking_objects`

Read-Only:

- `decrement_value` (Number) Decrement Value for VRRP priority
- `decrement_value_variable` (String) Variable name
- `tracker_action` (String) Track Action
- `tracker_action_variable` (String) Variable name
- `tracker_id` (String)



<a id="nestedatt--ipv6_dhcp_helpers"></a>
### Nested Schema for `ipv6_dhcp_helpers`
Expand Down
13 changes: 13 additions & 0 deletions docs/data-sources/service_lan_vpn_interface_svi_feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Read-Only:
- `tloc_prefix_change_value_variable` (String) Variable name
- `track_omp` (Boolean) Track OMP status
- `track_omp_variable` (String) Variable name
- `tracking_objects` (Attributes List) tracking object for VRRP configuration (see [below for nested schema](#nestedatt--ipv4_vrrps--tracking_objects))

<a id="nestedatt--ipv4_vrrps--secondary_addresses"></a>
### Nested Schema for `ipv4_vrrps.secondary_addresses`
Expand All @@ -122,6 +123,18 @@ Read-Only:
- `address_variable` (String) Variable name


<a id="nestedatt--ipv4_vrrps--tracking_objects"></a>
### Nested Schema for `ipv4_vrrps.tracking_objects`

Read-Only:

- `decrement_value` (Number) Decrement Value for VRRP priority
- `decrement_value_variable` (String) Variable name
- `track_action` (String) Track Action
- `track_action_variable` (String) Variable name
- `tracker_id` (String)



<a id="nestedatt--ipv6_dhcp_helpers"></a>
### Nested Schema for `ipv6_dhcp_helpers`
Expand Down
22 changes: 22 additions & 0 deletions docs/resources/service_lan_vpn_interface_ethernet_feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,13 @@ resource "sdwan_service_lan_vpn_interface_ethernet_feature" "example" {
]
tloc_prefix_change = true
tloc_pref_change_value = 100
tracking_objects = [
{
tracker_id = "1b270f6d-479b-47e3-ab0b-51bc6811a303"
tracker_action = "Decrement"
decrement_value = 100
}
]
}
]
arps = [
Expand Down Expand Up @@ -299,6 +306,7 @@ Optional:
- Default value: `false`
- `track_omp` (Boolean) Track OMP status
- Default value: `false`
- `tracking_objects` (Attributes List) Tracking object for VRRP configuration (see [below for nested schema](#nestedatt--ipv4_vrrps--tracking_objects))

<a id="nestedatt--ipv4_vrrps--secondary_addresses"></a>
### Nested Schema for `ipv4_vrrps.secondary_addresses`
Expand All @@ -312,6 +320,20 @@ Optional:
- `subnet_mask_variable` (String) Variable name


<a id="nestedatt--ipv4_vrrps--tracking_objects"></a>
### Nested Schema for `ipv4_vrrps.tracking_objects`

Optional:

- `decrement_value` (Number) Decrement Value for VRRP priority
- Range: `1`-`255`
- `decrement_value_variable` (String) Variable name
- `tracker_action` (String) Track Action
- Choices: `Decrement`, `Shutdown`
- `tracker_action_variable` (String) Variable name
- `tracker_id` (String)



<a id="nestedatt--ipv6_dhcp_helpers"></a>
### Nested Schema for `ipv6_dhcp_helpers`
Expand Down
22 changes: 22 additions & 0 deletions docs/resources/service_lan_vpn_interface_svi_feature.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ resource "sdwan_service_lan_vpn_interface_svi_feature" "example" {
]
tloc_prefix_change = true
tloc_prefix_change_value = 100
tracking_objects = [
{
tracker_id = "1b270f6d-479b-47e3-ab0b-51bc6811a303"
track_action = "decrement"
decrement_value = 100
}
]
}
]
ipv6_vrrps = [
Expand Down Expand Up @@ -213,6 +220,7 @@ Optional:
- `track_omp` (Boolean) Track OMP status
- Default value: `false`
- `track_omp_variable` (String) Variable name
- `tracking_objects` (Attributes List) tracking object for VRRP configuration (see [below for nested schema](#nestedatt--ipv4_vrrps--tracking_objects))

<a id="nestedatt--ipv4_vrrps--secondary_addresses"></a>
### Nested Schema for `ipv4_vrrps.secondary_addresses`
Expand All @@ -223,6 +231,20 @@ Optional:
- `address_variable` (String) Variable name


<a id="nestedatt--ipv4_vrrps--tracking_objects"></a>
### Nested Schema for `ipv4_vrrps.tracking_objects`

Optional:

- `decrement_value` (Number) Decrement Value for VRRP priority
- Range: `1`-`255`
- `decrement_value_variable` (String) Variable name
- `track_action` (String) Track Action
- Choices: `decrement`, `shutdown`
- `track_action_variable` (String) Variable name
- `tracker_id` (String)



<a id="nestedatt--ipv6_dhcp_helpers"></a>
### Nested Schema for `ipv6_dhcp_helpers`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ resource "sdwan_service_lan_vpn_interface_ethernet_feature" "example" {
]
tloc_prefix_change = true
tloc_pref_change_value = 100
tracking_objects = [
{
tracker_id = "1b270f6d-479b-47e3-ab0b-51bc6811a303"
tracker_action = "Decrement"
decrement_value = 100
}
]
}
]
arps = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ resource "sdwan_service_lan_vpn_interface_svi_feature" "example" {
]
tloc_prefix_change = true
tloc_prefix_change_value = 100
tracking_objects = [
{
tracker_id = "1b270f6d-479b-47e3-ab0b-51bc6811a303"
track_action = "decrement"
decrement_value = 100
}
]
}
]
ipv6_vrrps = [
Expand Down
22 changes: 0 additions & 22 deletions gen/definitions/profile_parcels/service_lan_vpn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,11 @@ attributes:
- model_name: ompProtocol
tf_name: protocol
example: bgp
# ====== UX2.0 Route Policy Not Supported By Provider ======
- model_name: refId
tf_name: route_policy_id
data_path: [routePolicy]
id: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: prefixList
tf_name: prefixes
exclude_test: true
Expand All @@ -88,13 +86,11 @@ attributes:
- model_name: ompProtocol
tf_name: protocol
example: OSPF
# ====== UX2.0 Route Policy Not Supported By Provider ======
- model_name: refId
tf_name: route_policy_id
data_path: [routePolicy]
id: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: protocolSubType
example: External
- model_name: prefixList
Expand Down Expand Up @@ -137,12 +133,10 @@ attributes:
- model_name: distance
tf_name: administrative_distance
example: 1
# ====== UX2.0 Tracker and Trackerobject Not Supported By Provider ======
- model_name: refId
tf_name: tracker_id
data_path: [tracker]
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: null0
data_path: [oneOfIpRoute]
exclude_test: true
Expand Down Expand Up @@ -250,13 +244,11 @@ attributes:
example: true
- model_name: direction
example: inside
# ====== UX2.0 Tracker and Trackerobject Not Supported By Provider ======
- model_name: refId
tf_name: tracker_object_id
data_path: [trackingObject, trackerId]
exclude_test: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: natPortForward
tf_name: nat_port_forwards
attributes:
Expand Down Expand Up @@ -285,13 +277,11 @@ attributes:
example: 2.3.4.5
- model_name: staticNatDirection
example: inside
# ====== UX2.0 Tracker and Trackerobject Not Supported By Provider ======
- model_name: refId
tf_name: tracker_object_id
data_path: [trackingObject, trackerId]
exclude_test: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: nat64V4Pool
tf_name: nat_64_v4_pools
attributes:
Expand All @@ -314,52 +304,44 @@ attributes:
attributes:
- model_name: routeProtocol
example: static
# ====== UX2.0 Route Policy Not Supported By Provider ======
- model_name: refId
tf_name: route_policy_id
data_path: [routePolicy]
id: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: redistributeToProtocol
tf_name: redistributions
exclude_test: true
attributes:
- model_name: protocol
example: bgp
# ====== UX2.0 Route Policy Not Supported By Provider ======
- model_name: refId
data_path: [policy]
tf_name: redistribution_policy_id
id: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: routeLeakFromService
tf_name: route_leak_to_global_vpns
exclude_test: true
attributes:
- model_name: routeProtocol
example: static
# ====== UX2.0 Route Policy Not Supported By Provider ======
- model_name: refId
tf_name: route_policy_id
data_path: [routePolicy]
id: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: redistributeToProtocol
tf_name: redistributions
attributes:
- model_name: protocol
example: bgp
# ====== UX2.0 Route Policy Not Supported By Provider ======
- model_name: refId
tf_name: redistribution_policy_id
data_path: [policy]
id: true
exclude_test: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: routeLeakBetweenServices
tf_name: route_leak_from_other_services
exclude_test: true
Expand All @@ -368,26 +350,22 @@ attributes:
example: 1
- model_name: routeProtocol
example: static
# ====== UX2.0 Route Policy Not Supported By Provider ======
- model_name: refId
tf_name: route_policy_id
data_path: [routePolicy]
id: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: redistributeToProtocol
tf_name: redistributions
exclude_test: true
attributes:
- model_name: protocol
example: bgp
# ====== UX2.0 Route Policy Not Supported By Provider ======
- model_name: refId
tf_name: redistribution_policy_id
data_path: [policy]
id: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# test_value:
- model_name: importRtList
tf_name: ipv4_import_route_targets
data_path: [mplsVpnIpv4RouteTarget]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,18 +236,19 @@ attributes:
example: true
- model_name: tlocPrefChangeValue
example: 100
# - model_name: trackingObject
# tf_name: tracking_objects
# exclude_test: true
# attributes:
# - model_name: trackerId
# tf_name: tracker_policy_id
# id: true
# example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
# - model_name: trackerAction
# example: decrement
# - model_name: decrementValue
# example: 100
- model_name: trackingObject
tf_name: tracking_objects
attributes:
- model_name: refId
tf_name: tracker_id
data_path: [trackerId]
id: true
example: 1b270f6d-479b-47e3-ab0b-51bc6811a303
test_value: sdwan_service_tracker_feature.test.id
- model_name: trackerAction
example: Decrement
- model_name: decrementValue
example: 100
- model_name: arp
tf_name: arps
attributes:
Expand Down Expand Up @@ -330,4 +331,19 @@ test_prerequisites: |
resource "sdwan_service_lan_vpn_feature" "test" {
name = "TF_TEST_SLAN"
feature_profile_id = sdwan_service_feature_profile.test.id
}
resource "sdwan_service_tracker_feature" "test" {
name = "TF_TEST_TRACKER"
description = "Terraform test"
feature_profile_id = sdwan_service_feature_profile.test.id
tracker_name = "TRACKER_1"
endpoint_api_url = "google.com"
endpoint_dns_name = "google.com"
endpoint_ip = "1.2.3.4"
interval = 30
multiplier = 3
threshold = 300
endpoint_tracker_type = "static-route"
tracker_type = "endpoint"
}
Loading

0 comments on commit 40d434c

Please sign in to comment.