Skip to content

Commit 445e016

Browse files
committed
Fix interface attributes
1 parent d6639c1 commit 445e016

File tree

7 files changed

+12
-9
lines changed

7 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
## 0.2.1 (unreleased)
22

33
- Add `bundle` attributes to `iosxr_interface` resource and data source
4+
- Make `dampening_decay_half_life_value` attribute of `iosxr_interface` resource optional
5+
- Do not configure `ipv6_link_local_zone` attribute of `iosxr_interface` resource by default
46

57
## 0.2.0
68

docs/guides/changelog.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: |-
1010
## 0.2.1 (unreleased)
1111

1212
- Add `bundle` attributes to `iosxr_interface` resource and data source
13+
- Make `dampening_decay_half_life_value` attribute of `iosxr_interface` resource optional
14+
- Do not configure `ipv6_link_local_zone` attribute of `iosxr_interface` resource by default
1315

1416
## 0.2.0
1517

docs/resources/interface.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ resource "iosxr_interface" "example" {
5858

5959
### Required
6060

61-
- `dampening_decay_half_life_value` (Number) Decay half life (in minutes)
62-
- Range: `1`-`45`
6361
- `interface_name` (String) Interface configuration subcommands
6462

6563
### Optional
@@ -80,6 +78,8 @@ resource "iosxr_interface" "example" {
8078
- `bundle_port_priority` (Number) Priority for this port. Lower value is higher priority.
8179
- Range: `1`-`65535`
8280
- `bundle_shutdown` (Boolean) Bring all links in the bundle down to Standby state
81+
- `dampening_decay_half_life_value` (Number) Decay half life (in minutes)
82+
- Range: `1`-`45`
8383
- `description` (String) Set description for this interface
8484
- `device` (String) A device name from the provider configuration.
8585
- `encapsulation_dot1q_vlan_id` (Number) Configure first (outer) VLAN ID on the subinterface
@@ -92,7 +92,6 @@ resource "iosxr_interface" "example" {
9292
- `ipv6_enable` (Boolean) Enable IPv6 on interface
9393
- `ipv6_link_local_address` (String) IPv6 address
9494
- `ipv6_link_local_zone` (String) IPv6 address zone
95-
- Default value: `0`
9695
- `l2transport` (Boolean) l2transport sub-interface
9796
- `l2transport_encapsulation_dot1q_second_dot1q` (String) End of VLAN range
9897
- `l2transport_encapsulation_dot1q_vlan_id` (String) Single VLAN id or start of VLAN range

gen/definitions/interface.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ attributes:
1717
example: false
1818
- yang_name: dampening/decay-half-life/value
1919
delete_parent: true
20+
optional: true
2021
example: 2
2122
- yang_name: ipv4/Cisco-IOS-XR-um-if-ipv4-cfg:point-to-point
2223
tf_name: ipv4_point_to_point
@@ -98,7 +99,7 @@ attributes:
9899
example: "fe80::1"
99100
- yang_name: ipv6/Cisco-IOS-XR-um-if-ip-address-cfg:addresses/link-local-address/zone
100101
tf_name: ipv6_link_local_zone
101-
default_value: "0"
102+
optional: true
102103
delete_parent: true
103104
example: "0"
104105
- yang_name: ipv6/Cisco-IOS-XR-um-if-ip-address-cfg:addresses/autoconfig

internal/provider/resource_iosxr_interface.go

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

internal/provider/resource_iosxr_interface_test.go

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

templates/guides/changelog.md.tmpl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ description: |-
1010
## 0.2.1 (unreleased)
1111

1212
- Add `bundle` attributes to `iosxr_interface` resource and data source
13+
- Make `dampening_decay_half_life_value` attribute of `iosxr_interface` resource optional
14+
- Do not configure `ipv6_link_local_zone` attribute of `iosxr_interface` resource by default
1315

1416
## 0.2.0
1517

0 commit comments

Comments
 (0)