Skip to content

Commit

Permalink
Update line and errdisable resources
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Sep 15, 2023
1 parent 0b80f74 commit dfd4374
Show file tree
Hide file tree
Showing 18 changed files with 384 additions and 312 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 0.4.1 (unreleased)

- Add `iosxe_errdisable` resource and data source
- Add `iosxe_line` resource and data source

## 0.4.0

- Fix issue when using `tunnel_destination_ipv4` or `tunnel_mode_ipsec_ipv4` attributes of `iosxe_interface_tunnel` resource
Expand Down Expand Up @@ -41,8 +46,6 @@
- BREAKING CHANGE: Rename `summary_address` attribute to `summary_addresses` of `iosxe_ospf` resource and data source
- Add `ipv4_unicast_networks_mask` and `ipv4_unicast_networks` attribute to `iosxe_bgp_address_family_ipv4` and `iosxe_bgp_address_family_ipv4_vrf` resources and data sources
- Add `ipv6_unicast_networks` attribute to `iosxe_bgp_address_family_ipv6` and `iosxe_bgp_address_family_ipv6_vrf` resources and data sources
- Add `iosxe_errdisable` resource and data source
- Add `iosxe_line` resource and data source

## 0.3.3

Expand Down
14 changes: 7 additions & 7 deletions docs/data-sources/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ Read-Only:
- `first` (String)
- `login_authentication` (String)
- `login_local` (Boolean)
- `password` (String)
- `password_level` (Number) Set exec level password
- `password_secret` (String)
- `password_type` (String)
- `privilege_level_number` (Number)
- `privilege_level` (Number)
- `stopbits` (String) Set async line stop bits


Expand All @@ -52,20 +52,20 @@ Read-Only:

Read-Only:

- `access_class` (Attributes List) (see [below for nested schema](#nestedatt--vty--access_class))
- `escape_character_char` (String)
- `access_classes` (Attributes List) (see [below for nested schema](#nestedatt--vty--access_classes))
- `escape_character` (String)
- `exec_timeout_minutes` (Number) <0-35791>;;Timeout in minutes
- `exec_timeout_seconds` (Number) <0-2147483>;;Timeout in seconds
- `first` (Number)
- `last` (Number)
- `login_authentication` (String)
- `password` (String)
- `password_level` (Number) Set exec level password
- `password_secret` (String)
- `password_type` (String)
- `transport_preferred_protocol` (String)

<a id="nestedatt--vty--access_class"></a>
### Nested Schema for `vty.access_class`
<a id="nestedatt--vty--access_classes"></a>
### Nested Schema for `vty.access_classes`

Read-Only:

Expand Down
7 changes: 5 additions & 2 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ description: |-

# Changelog

## 0.4.1 (unreleased)

- Add `iosxe_errdisable` resource and data source
- Add `iosxe_line` resource and data source

## 0.4.0

- Fix issue when using `tunnel_destination_ipv4` or `tunnel_mode_ipsec_ipv4` attributes of `iosxe_interface_tunnel` resource
Expand Down Expand Up @@ -50,8 +55,6 @@ description: |-
- BREAKING CHANGE: Rename `summary_address` attribute to `summary_addresses` of `iosxe_ospf` resource and data source
- Add `ipv4_unicast_networks_mask` and `ipv4_unicast_networks` attribute to `iosxe_bgp_address_family_ipv4` and `iosxe_bgp_address_family_ipv4_vrf` resources and data sources
- Add `ipv6_unicast_networks` attribute to `iosxe_bgp_address_family_ipv6` and `iosxe_bgp_address_family_ipv6_vrf` resources and data sources
- Add `iosxe_errdisable` resource and data source
- Add `iosxe_line` resource and data source

## 0.3.3

Expand Down
65 changes: 28 additions & 37 deletions docs/resources/errdisable.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,43 +14,34 @@ This resource can manage the Errdisable configuration.

```terraform
resource "iosxe_errdisable" "example" {
detect_cause_all = true
detect_cause_arp_inspection = true
detect_cause_dhcp_rate_limit = true
detect_cause_dtp_flap = true
detect_cause_l2ptguard = true
detect_cause_link_flap = true
detect_cause_security_violation_shutdown_vlan = true
flap_setting_cause_dtp_flap_max_flaps = 80
flap_setting_cause_dtp_flap_time = 90
flap_setting_cause_link_flap_max_flaps = 80
flap_setting_cause_link_flap_time = 90
flap_setting_cause_pagp_flap_max_flaps = 80
flap_setting_cause_pagp_flap_time = 90
recovery_interval = 855
recovery_cause_all = true
recovery_cause_arp_inspection = true
recovery_cause_bpduguard = true
recovery_cause_channel_misconfig = true
recovery_cause_dhcp_rate_limit = true
recovery_cause_dtp_flap = true
recovery_cause_gbic_invalid = true
recovery_cause_inline_power = true
recovery_cause_l2ptguard = true
recovery_cause_link_flap = true
recovery_cause_link_monitor_failure = true
recovery_cause_loopback = true
recovery_cause_mac_limit = true
recovery_cause_pagp_flap = true
recovery_cause_port_mode_failure = true
recovery_cause_pppoe_ia_rate_limit = true
recovery_cause_psp = true
recovery_cause_psecure_violation = true
recovery_cause_security_violation = true
recovery_cause_sfp_config_mismatch = true
recovery_cause_storm_control = true
recovery_cause_udld = true
recovery_cause_loopdetect = true
detect_cause_all = true
detect_cause_dhcp_rate_limit = true
detect_cause_dtp_flap = true
detect_cause_l2ptguard = true
detect_cause_link_flap = true
detect_cause_pppoe_ia_rate_limit = true
detect_cause_loopdetect = true
flap_setting_cause_dtp_flap_max_flaps = 80
flap_setting_cause_dtp_flap_time = 90
flap_setting_cause_link_flap_max_flaps = 80
flap_setting_cause_link_flap_time = 90
flap_setting_cause_pagp_flap_max_flaps = 80
flap_setting_cause_pagp_flap_time = 90
recovery_interval = 855
recovery_cause_all = true
recovery_cause_arp_inspection = true
recovery_cause_bpduguard = true
recovery_cause_dhcp_rate_limit = true
recovery_cause_dtp_flap = true
recovery_cause_l2ptguard = true
recovery_cause_link_flap = true
recovery_cause_port_mode_failure = true
recovery_cause_pppoe_ia_rate_limit = true
recovery_cause_psp = true
recovery_cause_psecure_violation = true
recovery_cause_security_violation = true
recovery_cause_udld = true
recovery_cause_loopdetect = true
}
```

Expand Down
34 changes: 17 additions & 17 deletions docs/resources/line.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@ This resource can manage the Line configuration.
resource "iosxe_line" "example" {
console = [
{
first = "0"
exec_timeout_minutes = 45
exec_timeout_seconds = 25
privilege_level_number = 15
stopbits = "1"
password_type = "0"
password_secret = "testpasswd"
first = "0"
exec_timeout_minutes = 45
exec_timeout_seconds = 25
privilege_level = 15
stopbits = "1"
password_type = "0"
password = "testpasswd"
}
]
vty = [
{
first = 10
last = 27
access_class = [
access_classes = [
{
direction = "in"
access_list = "2"
Expand All @@ -39,9 +39,9 @@ resource "iosxe_line" "example" {
exec_timeout_minutes = 45
exec_timeout_seconds = 25
password_type = "0"
password_secret = "testpasswd"
password = "testpasswd"
transport_preferred_protocol = "none"
escape_character_char = "27"
escape_character = "27"
}
]
}
Expand Down Expand Up @@ -77,11 +77,11 @@ Optional:
- Range: `0`-`2147483`
- `login_authentication` (String)
- `login_local` (Boolean)
- `password` (String)
- `password_level` (Number) Set exec level password
- Range: `0`-`255`
- `password_secret` (String)
- `password_type` (String) - Choices: `0`, `7`
- `privilege_level_number` (Number) - Range: `0`-`15`
- `privilege_level` (Number) - Range: `0`-`15`
- `stopbits` (String) Set async line stop bits
- Choices: `1`, `1.5`, `2`

Expand All @@ -95,22 +95,22 @@ Required:

Optional:

- `access_class` (Attributes List) (see [below for nested schema](#nestedatt--vty--access_class))
- `escape_character_char` (String)
- `access_classes` (Attributes List) (see [below for nested schema](#nestedatt--vty--access_classes))
- `escape_character` (String)
- `exec_timeout_minutes` (Number) <0-35791>;;Timeout in minutes
- Range: `0`-`35791`
- `exec_timeout_seconds` (Number) <0-2147483>;;Timeout in seconds
- Range: `0`-`2147483`
- `last` (Number) - Range: `1`-`1869`
- `login_authentication` (String)
- `password` (String)
- `password_level` (Number) Set exec level password
- Range: `0`-`255`
- `password_secret` (String)
- `password_type` (String) - Choices: `0`, `7`
- `transport_preferred_protocol` (String) - Choices: `acercon`, `lat`, `mop`, `nasi`, `none`, `pad`, `rlogin`, `ssh`, `telnet`, `udptn`

<a id="nestedatt--vty--access_class"></a>
### Nested Schema for `vty.access_class`
<a id="nestedatt--vty--access_classes"></a>
### Nested Schema for `vty.access_classes`

Required:

Expand Down
65 changes: 28 additions & 37 deletions examples/resources/iosxe_errdisable/resource.tf
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
resource "iosxe_errdisable" "example" {
detect_cause_all = true
detect_cause_arp_inspection = true
detect_cause_dhcp_rate_limit = true
detect_cause_dtp_flap = true
detect_cause_l2ptguard = true
detect_cause_link_flap = true
detect_cause_security_violation_shutdown_vlan = true
flap_setting_cause_dtp_flap_max_flaps = 80
flap_setting_cause_dtp_flap_time = 90
flap_setting_cause_link_flap_max_flaps = 80
flap_setting_cause_link_flap_time = 90
flap_setting_cause_pagp_flap_max_flaps = 80
flap_setting_cause_pagp_flap_time = 90
recovery_interval = 855
recovery_cause_all = true
recovery_cause_arp_inspection = true
recovery_cause_bpduguard = true
recovery_cause_channel_misconfig = true
recovery_cause_dhcp_rate_limit = true
recovery_cause_dtp_flap = true
recovery_cause_gbic_invalid = true
recovery_cause_inline_power = true
recovery_cause_l2ptguard = true
recovery_cause_link_flap = true
recovery_cause_link_monitor_failure = true
recovery_cause_loopback = true
recovery_cause_mac_limit = true
recovery_cause_pagp_flap = true
recovery_cause_port_mode_failure = true
recovery_cause_pppoe_ia_rate_limit = true
recovery_cause_psp = true
recovery_cause_psecure_violation = true
recovery_cause_security_violation = true
recovery_cause_sfp_config_mismatch = true
recovery_cause_storm_control = true
recovery_cause_udld = true
recovery_cause_loopdetect = true
detect_cause_all = true
detect_cause_dhcp_rate_limit = true
detect_cause_dtp_flap = true
detect_cause_l2ptguard = true
detect_cause_link_flap = true
detect_cause_pppoe_ia_rate_limit = true
detect_cause_loopdetect = true
flap_setting_cause_dtp_flap_max_flaps = 80
flap_setting_cause_dtp_flap_time = 90
flap_setting_cause_link_flap_max_flaps = 80
flap_setting_cause_link_flap_time = 90
flap_setting_cause_pagp_flap_max_flaps = 80
flap_setting_cause_pagp_flap_time = 90
recovery_interval = 855
recovery_cause_all = true
recovery_cause_arp_inspection = true
recovery_cause_bpduguard = true
recovery_cause_dhcp_rate_limit = true
recovery_cause_dtp_flap = true
recovery_cause_l2ptguard = true
recovery_cause_link_flap = true
recovery_cause_port_mode_failure = true
recovery_cause_pppoe_ia_rate_limit = true
recovery_cause_psp = true
recovery_cause_psecure_violation = true
recovery_cause_security_violation = true
recovery_cause_udld = true
recovery_cause_loopdetect = true
}
20 changes: 10 additions & 10 deletions examples/resources/iosxe_line/resource.tf
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
resource "iosxe_line" "example" {
console = [
{
first = "0"
exec_timeout_minutes = 45
exec_timeout_seconds = 25
privilege_level_number = 15
stopbits = "1"
password_type = "0"
password_secret = "testpasswd"
first = "0"
exec_timeout_minutes = 45
exec_timeout_seconds = 25
privilege_level = 15
stopbits = "1"
password_type = "0"
password = "testpasswd"
}
]
vty = [
{
first = 10
last = 27
access_class = [
access_classes = [
{
direction = "in"
access_list = "2"
Expand All @@ -24,9 +24,9 @@ resource "iosxe_line" "example" {
exec_timeout_minutes = 45
exec_timeout_seconds = 25
password_type = "0"
password_secret = "testpasswd"
password = "testpasswd"
transport_preferred_protocol = "none"
escape_character_char = "27"
escape_character = "27"
}
]
}
Loading

0 comments on commit dfd4374

Please sign in to comment.