-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add router hsrp ipv6 resources and data sources (#178)
- Loading branch information
1 parent
d414cf4
commit 430bf13
Showing
23 changed files
with
3,462 additions
and
0 deletions.
There are no files selected for viewing
76 changes: 76 additions & 0 deletions
76
docs/data-sources/router_hsrp_interface_address_family_ipv6_v1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "iosxr_router_hsrp_interface_address_family_ipv6_v1 Data Source - terraform-provider-iosxr" | ||
subcategory: "HSRP" | ||
description: |- | ||
This data source can read the Router HSRP Interface Address Family IPv6 V1 configuration. | ||
--- | ||
|
||
# iosxr_router_hsrp_interface_address_family_ipv6_v1 (Data Source) | ||
|
||
This data source can read the Router HSRP Interface Address Family IPv6 V1 configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "iosxr_router_hsrp_interface_address_family_ipv6_v1" "example" { | ||
interface_name = "GigabitEthernet0/0/0/1" | ||
group_number_version_1_id = 135 | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `group_number_version_1_id` (Number) group number version 1 | ||
- `interface_name` (String) HSRP interface configuration subcommands | ||
|
||
### Optional | ||
|
||
- `device` (String) A device name from the provider configuration. | ||
|
||
### Read-Only | ||
|
||
- `address_globals` (Attributes List) Global HSRP IPv6 address (see [below for nested schema](#nestedatt--address_globals)) | ||
- `address_link_local_autoconfig_legacy_compatible` (Boolean) Autoconfigure for Legacy compatibility (with IOS/NX-OS) | ||
- `address_link_local_ipv6_address` (String) HSRP IPv6 linklocal address | ||
- `bfd_fast_detect_peer_interface` (String) Select an interface over which to run BFD | ||
- `bfd_fast_detect_peer_ipv6` (String) BFD peer interface IPv6 address | ||
- `id` (String) The path of the retrieved object. | ||
- `mac_address` (String) Use specified mac address for the virtual router | ||
- `name` (String) MGO session name | ||
- `preempt_delay` (Number) Wait before preempting | ||
- `priority` (Number) Priority level | ||
- `timers_hold_time` (Number) Hold time in seconds | ||
- `timers_hold_time2` (Number) Hold time in seconds | ||
- `timers_msec` (Number) Specify hellotime in milliseconds | ||
- `timers_msec2` (Number) Specify hold time in milliseconds | ||
- `track_interfaces` (Attributes List) Configure tracking (see [below for nested schema](#nestedatt--track_interfaces)) | ||
- `track_objects` (Attributes List) Object tracking (see [below for nested schema](#nestedatt--track_objects)) | ||
|
||
<a id="nestedatt--address_globals"></a> | ||
### Nested Schema for `address_globals` | ||
|
||
Read-Only: | ||
|
||
- `address` (String) Set Global HSRP IPv6 address | ||
|
||
|
||
<a id="nestedatt--track_interfaces"></a> | ||
### Nested Schema for `track_interfaces` | ||
|
||
Read-Only: | ||
|
||
- `priority_decrement` (Number) Priority decrement | ||
- `track_name` (String) Configure tracking | ||
|
||
|
||
<a id="nestedatt--track_objects"></a> | ||
### Nested Schema for `track_objects` | ||
|
||
Read-Only: | ||
|
||
- `object_name` (String) Object tracking | ||
- `priority_decrement` (Number) Priority decrement |
76 changes: 76 additions & 0 deletions
76
docs/data-sources/router_hsrp_interface_address_family_ipv6_v2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "iosxr_router_hsrp_interface_address_family_ipv6_v2 Data Source - terraform-provider-iosxr" | ||
subcategory: "HSRP" | ||
description: |- | ||
This data source can read the Router HSRP Interface Address Family IPv6 V2 configuration. | ||
--- | ||
|
||
# iosxr_router_hsrp_interface_address_family_ipv6_v2 (Data Source) | ||
|
||
This data source can read the Router HSRP Interface Address Family IPv6 V2 configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "iosxr_router_hsrp_interface_address_family_ipv6_v2" "example" { | ||
interface_name = "GigabitEthernet0/0/0/2" | ||
group_number_version_2_id = 4055 | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `group_number_version_2_id` (Number) group number version 2 | ||
- `interface_name` (String) HSRP interface configuration subcommands | ||
|
||
### Optional | ||
|
||
- `device` (String) A device name from the provider configuration. | ||
|
||
### Read-Only | ||
|
||
- `address_globals` (Attributes List) Global HSRP IPv6 address (see [below for nested schema](#nestedatt--address_globals)) | ||
- `address_link_local_autoconfig_legacy_compatible` (Boolean) Autoconfigure for Legacy compatibility (with IOS/NX-OS) | ||
- `address_link_local_ipv6_address` (String) HSRP IPv6 linklocal address | ||
- `bfd_fast_detect_peer_interface` (String) Select an interface over which to run BFD | ||
- `bfd_fast_detect_peer_ipv6` (String) BFD peer interface IPv6 address | ||
- `id` (String) The path of the retrieved object. | ||
- `mac_address` (String) Use specified mac address for the virtual router | ||
- `name` (String) MGO session name | ||
- `preempt_delay` (Number) Wait before preempting | ||
- `priority` (Number) Priority level | ||
- `timers_hold_time` (Number) Hold time in seconds | ||
- `timers_hold_time2` (Number) Hold time in seconds | ||
- `timers_msec` (Number) Specify hellotime in milliseconds | ||
- `timers_msec2` (Number) Specify hold time in milliseconds | ||
- `track_interfaces` (Attributes List) Configure tracking (see [below for nested schema](#nestedatt--track_interfaces)) | ||
- `track_objects` (Attributes List) Object tracking (see [below for nested schema](#nestedatt--track_objects)) | ||
|
||
<a id="nestedatt--address_globals"></a> | ||
### Nested Schema for `address_globals` | ||
|
||
Read-Only: | ||
|
||
- `address` (String) Set Global HSRP IPv6 address | ||
|
||
|
||
<a id="nestedatt--track_interfaces"></a> | ||
### Nested Schema for `track_interfaces` | ||
|
||
Read-Only: | ||
|
||
- `priority_decrement` (Number) Priority decrement | ||
- `track_name` (String) Configure tracking | ||
|
||
|
||
<a id="nestedatt--track_objects"></a> | ||
### Nested Schema for `track_objects` | ||
|
||
Read-Only: | ||
|
||
- `object_name` (String) Object tracking | ||
- `priority_decrement` (Number) Priority decrement |
118 changes: 118 additions & 0 deletions
118
docs/resources/router_hsrp_interface_address_family_ipv6_v1.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "iosxr_router_hsrp_interface_address_family_ipv6_v1 Resource - terraform-provider-iosxr" | ||
subcategory: "HSRP" | ||
description: |- | ||
This resource can manage the Router HSRP Interface Address Family IPv6 V1 configuration. | ||
--- | ||
|
||
# iosxr_router_hsrp_interface_address_family_ipv6_v1 (Resource) | ||
|
||
This resource can manage the Router HSRP Interface Address Family IPv6 V1 configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "iosxr_router_hsrp_interface_address_family_ipv6_v1" "example" { | ||
interface_name = "GigabitEthernet0/0/0/1" | ||
group_number_version_1_id = 135 | ||
name = "gp1" | ||
mac_address = "00:02:00:01:00:01" | ||
timers_hold_time = 10 | ||
timers_hold_time2 = 20 | ||
timers_msec = 100 | ||
timers_msec2 = 130 | ||
preempt_delay = 256 | ||
priority = 244 | ||
bfd_fast_detect_peer_ipv6 = "fe80::240:d0ff:fe48:4672" | ||
bfd_fast_detect_peer_interface = "GigabitEthernet0/0/0/2" | ||
track_objects = [ | ||
{ | ||
object_name = "TOBJ1" | ||
priority_decrement = 10 | ||
} | ||
] | ||
track_interfaces = [ | ||
{ | ||
track_name = "GigabitEthernet0/0/0/4" | ||
priority_decrement = 244 | ||
} | ||
] | ||
address_link_local_autoconfig_legacy_compatible = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `group_number_version_1_id` (Number) group number version 1 | ||
- Range: `0`-`255` | ||
- `interface_name` (String) HSRP interface configuration subcommands | ||
|
||
### Optional | ||
|
||
- `address_globals` (Attributes List) Global HSRP IPv6 address (see [below for nested schema](#nestedatt--address_globals)) | ||
- `address_link_local_autoconfig_legacy_compatible` (Boolean) Autoconfigure for Legacy compatibility (with IOS/NX-OS) | ||
- `address_link_local_ipv6_address` (String) HSRP IPv6 linklocal address | ||
- `bfd_fast_detect_peer_interface` (String) Select an interface over which to run BFD | ||
- `bfd_fast_detect_peer_ipv6` (String) BFD peer interface IPv6 address | ||
- `delete_mode` (String) Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is `all`. | ||
- Choices: `all`, `attributes` | ||
- `device` (String) A device name from the provider configuration. | ||
- `mac_address` (String) Use specified mac address for the virtual router | ||
- `name` (String) MGO session name | ||
- `preempt_delay` (Number) Wait before preempting | ||
- Range: `0`-`3600` | ||
- `priority` (Number) Priority level | ||
- Range: `0`-`255` | ||
- `timers_hold_time` (Number) Hold time in seconds | ||
- Range: `1`-`255` | ||
- `timers_hold_time2` (Number) Hold time in seconds | ||
- Range: `1`-`255` | ||
- `timers_msec` (Number) Specify hellotime in milliseconds | ||
- Range: `100`-`3000` | ||
- `timers_msec2` (Number) Specify hold time in milliseconds | ||
- Range: `100`-`3000` | ||
- `track_interfaces` (Attributes List) Configure tracking (see [below for nested schema](#nestedatt--track_interfaces)) | ||
- `track_objects` (Attributes List) Object tracking (see [below for nested schema](#nestedatt--track_objects)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The path of the object. | ||
|
||
<a id="nestedatt--address_globals"></a> | ||
### Nested Schema for `address_globals` | ||
|
||
Required: | ||
|
||
- `address` (String) Set Global HSRP IPv6 address | ||
|
||
|
||
<a id="nestedatt--track_interfaces"></a> | ||
### Nested Schema for `track_interfaces` | ||
|
||
Required: | ||
|
||
- `priority_decrement` (Number) Priority decrement | ||
- Range: `1`-`255` | ||
- `track_name` (String) Configure tracking | ||
|
||
|
||
<a id="nestedatt--track_objects"></a> | ||
### Nested Schema for `track_objects` | ||
|
||
Required: | ||
|
||
- `object_name` (String) Object tracking | ||
- `priority_decrement` (Number) Priority decrement | ||
- Range: `1`-`255` | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import iosxr_router_hsrp_interface_address_family_ipv6_v1.example "Cisco-IOS-XR-um-router-hsrp-cfg:/router/hsrp/interfaces/interface[interface-name=GigabitEthernet0/0/0/1]/address-family/ipv6/hsrp/group-number-version-1s/group-number-version-1[group-number-version-1-id=135]" | ||
``` |
123 changes: 123 additions & 0 deletions
123
docs/resources/router_hsrp_interface_address_family_ipv6_v2.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,123 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "iosxr_router_hsrp_interface_address_family_ipv6_v2 Resource - terraform-provider-iosxr" | ||
subcategory: "HSRP" | ||
description: |- | ||
This resource can manage the Router HSRP Interface Address Family IPv6 V2 configuration. | ||
--- | ||
|
||
# iosxr_router_hsrp_interface_address_family_ipv6_v2 (Resource) | ||
|
||
This resource can manage the Router HSRP Interface Address Family IPv6 V2 configuration. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "iosxr_router_hsrp_interface_address_family_ipv6_v2" "example" { | ||
interface_name = "GigabitEthernet0/0/0/2" | ||
group_number_version_2_id = 4055 | ||
name = "gp2" | ||
mac_address = "00:01:00:02:00:02" | ||
timers_hold_time = 10 | ||
timers_hold_time2 = 20 | ||
timers_msec = 100 | ||
timers_msec2 = 130 | ||
preempt_delay = 256 | ||
priority = 244 | ||
bfd_fast_detect_peer_ipv6 = "fe80::240:d0ff:fe48:4672" | ||
bfd_fast_detect_peer_interface = "GigabitEthernet0/0/0/3" | ||
track_objects = [ | ||
{ | ||
object_name = "TOBJ2" | ||
priority_decrement = 10 | ||
} | ||
] | ||
track_interfaces = [ | ||
{ | ||
track_name = "GigabitEthernet0/0/0/4" | ||
priority_decrement = 244 | ||
} | ||
] | ||
address_globals = [ | ||
{ | ||
address = "2001:db8:cafe:2100::bad1:1010" | ||
} | ||
] | ||
address_link_local_autoconfig_legacy_compatible = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `group_number_version_2_id` (Number) group number version 2 | ||
- Range: `0`-`4095` | ||
- `interface_name` (String) HSRP interface configuration subcommands | ||
|
||
### Optional | ||
|
||
- `address_globals` (Attributes List) Global HSRP IPv6 address (see [below for nested schema](#nestedatt--address_globals)) | ||
- `address_link_local_autoconfig_legacy_compatible` (Boolean) Autoconfigure for Legacy compatibility (with IOS/NX-OS) | ||
- `address_link_local_ipv6_address` (String) HSRP IPv6 linklocal address | ||
- `bfd_fast_detect_peer_interface` (String) Select an interface over which to run BFD | ||
- `bfd_fast_detect_peer_ipv6` (String) BFD peer interface IPv6 address | ||
- `delete_mode` (String) Configure behavior when deleting/destroying the resource. Either delete the entire object (YANG container) being managed, or only delete the individual resource attributes configured explicitly and leave everything else as-is. Default value is `all`. | ||
- Choices: `all`, `attributes` | ||
- `device` (String) A device name from the provider configuration. | ||
- `mac_address` (String) Use specified mac address for the virtual router | ||
- `name` (String) MGO session name | ||
- `preempt_delay` (Number) Wait before preempting | ||
- Range: `0`-`3600` | ||
- `priority` (Number) Priority level | ||
- Range: `0`-`255` | ||
- `timers_hold_time` (Number) Hold time in seconds | ||
- Range: `1`-`255` | ||
- `timers_hold_time2` (Number) Hold time in seconds | ||
- Range: `1`-`255` | ||
- `timers_msec` (Number) Specify hellotime in milliseconds | ||
- Range: `100`-`3000` | ||
- `timers_msec2` (Number) Specify hold time in milliseconds | ||
- Range: `100`-`3000` | ||
- `track_interfaces` (Attributes List) Configure tracking (see [below for nested schema](#nestedatt--track_interfaces)) | ||
- `track_objects` (Attributes List) Object tracking (see [below for nested schema](#nestedatt--track_objects)) | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The path of the object. | ||
|
||
<a id="nestedatt--address_globals"></a> | ||
### Nested Schema for `address_globals` | ||
|
||
Required: | ||
|
||
- `address` (String) Set Global HSRP IPv6 address | ||
|
||
|
||
<a id="nestedatt--track_interfaces"></a> | ||
### Nested Schema for `track_interfaces` | ||
|
||
Required: | ||
|
||
- `priority_decrement` (Number) Priority decrement | ||
- Range: `1`-`255` | ||
- `track_name` (String) Configure tracking | ||
|
||
|
||
<a id="nestedatt--track_objects"></a> | ||
### Nested Schema for `track_objects` | ||
|
||
Required: | ||
|
||
- `object_name` (String) Object tracking | ||
- `priority_decrement` (Number) Priority decrement | ||
- Range: `1`-`255` | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import iosxr_router_hsrp_interface_address_family_ipv6_v2.example "Cisco-IOS-XR-um-router-hsrp-cfg:/router/hsrp/interfaces/interface[interface-name=GigabitEthernet0/0/0/2]/address-family/ipv6/hsrp/group-number-version-2s/group-number-version-2[group-number-version-2-id=4055]" | ||
``` |
Oops, something went wrong.