Skip to content

Commit

Permalink
Refactor hsrp resources
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Aug 24, 2023
1 parent 0fb805e commit cea8c7f
Show file tree
Hide file tree
Showing 37 changed files with 3,355 additions and 2,855 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

- Add `ipv4_access_list` and `ipv6_access_list` attributes to `iosxr_ssh` resource and data source
- Add `iosxr_router_hsrp_interface` resource and data source
- Add `iosxr_router_hsrp_interface_address_family_ipv4` resource and data source
- Add `iosxr_router_hsrp_interface_address_family_ipv4_group_v1` resource and data source
- Add `iosxr_router_hsrp_interface_address_family_ipv4_group_v2` resource and data source

## 0.2.4

Expand Down
132 changes: 0 additions & 132 deletions docs/data-sources/router_hsrp_interface_address_family_ipv4.md

This file was deleted.

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_ipv4_group_v1 Data Source - terraform-provider-iosxr"
subcategory: "HSRP"
description: |-
This data source can read the Router HSRP Interface Address Family IPv4 Group V1 configuration.
---

# iosxr_router_hsrp_interface_address_family_ipv4_group_v1 (Data Source)

This data source can read the Router HSRP Interface Address Family IPv4 Group V1 configuration.

## Example Usage

```terraform
data "iosxr_router_hsrp_interface_address_family_ipv4_group_v1" "example" {
interface_name = "GigabitEthernet0/0/0/1"
group_id = 123
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `group_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` (String) Hot standby IP address
- `address_learn` (Boolean) Learn virtual IP address from peer
- `bfd_fast_detect_peer_interface` (String) Select an interface over which to run BFD
- `bfd_fast_detect_peer_ipv4` (String) BFD peer interface IPv4 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
- `secondary_ipv4_addresses` (Attributes List) Set secondary hot standby IP address (see [below for nested schema](#nestedatt--secondary_ipv4_addresses))
- `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--secondary_ipv4_addresses"></a>
### Nested Schema for `secondary_ipv4_addresses`

Read-Only:

- `address` (String) Set secondary hot standby IP 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
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_ipv4_group_v2 Data Source - terraform-provider-iosxr"
subcategory: "HSRP"
description: |-
This data source can read the Router HSRP Interface Address Family IPv4 Group V2 configuration.
---

# iosxr_router_hsrp_interface_address_family_ipv4_group_v2 (Data Source)

This data source can read the Router HSRP Interface Address Family IPv4 Group V2 configuration.

## Example Usage

```terraform
data "iosxr_router_hsrp_interface_address_family_ipv4_group_v2" "example" {
interface_name = "GigabitEthernet0/0/0/1"
group_id = 2345
}
```

<!-- schema generated by tfplugindocs -->
## Schema

### Required

- `group_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` (String) Hot standby IP address
- `address_learn` (Boolean) Learn virtual IP address from peer
- `bfd_fast_detect_peer_interface` (String) Select an interface over which to run BFD
- `bfd_fast_detect_peer_ipv4` (String) BFD peer interface IPv4 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
- `secondary_ipv4_addresses` (Attributes List) Set secondary hot standby IP address (see [below for nested schema](#nestedatt--secondary_ipv4_addresses))
- `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--secondary_ipv4_addresses"></a>
### Nested Schema for `secondary_ipv4_addresses`

Read-Only:

- `address` (String) Set secondary hot standby IP 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
3 changes: 2 additions & 1 deletion docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ description: |-

- Add `ipv4_access_list` and `ipv6_access_list` attributes to `iosxr_ssh` resource and data source
- Add `iosxr_router_hsrp_interface` resource and data source
- Add `iosxr_router_hsrp_interface_address_family_ipv4` resource and data source
- Add `iosxr_router_hsrp_interface_address_family_ipv4_group_v1` resource and data source
- Add `iosxr_router_hsrp_interface_address_family_ipv4_group_v2` resource and data source

## 0.2.4

Expand Down
Loading

0 comments on commit cea8c7f

Please sign in to comment.