Skip to content

Commit

Permalink
Add bandwidth attribute to interface ethernet resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Jan 11, 2024
1 parent 6ac969d commit 41ed80e
Show file tree
Hide file tree
Showing 12 changed files with 53 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 0.5.5 (unreleased)

- Add `bandwidth` attribute to `iosxe_interface_ethernet` resource and data source

## 0.5.4

- Add `next_hop_self` and `next_hop_self_all` attributes to `iosxe_bgp_ipv4_unicast_vrf_neighbor` resource and data source
Expand Down
1 change: 1 addition & 0 deletions docs/data-sources/interface_ethernet.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ data "iosxe_interface_ethernet" "example" {
- `auto_qos_voip_cisco_phone` (Boolean) Trust the QoS marking of Cisco IP Phone
- `auto_qos_voip_cisco_softphone` (Boolean) Trust the QoS marking of Cisco IP SoftPhone
- `auto_qos_voip_trust` (Boolean) Trust the DSCP/CoS marking
- `bandwidth` (Number)
- `bfd_echo` (Boolean) Use echo adjunct as bfd detection mechanism
- `bfd_enable` (Boolean) Enable BFD under the interface
- `bfd_interval` (Number)
Expand Down
4 changes: 4 additions & 0 deletions docs/guides/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: |-

# Changelog

## 0.5.5 (unreleased)

- Add `bandwidth` attribute to `iosxe_interface_ethernet` resource and data source

## 0.5.4

- Add `next_hop_self` and `next_hop_self_all` attributes to `iosxe_bgp_ipv4_unicast_vrf_neighbor` resource and data source
Expand Down
2 changes: 2 additions & 0 deletions docs/resources/interface_ethernet.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ This resource can manage the Interface Ethernet configuration.
resource "iosxe_interface_ethernet" "example" {
type = "GigabitEthernet"
name = "3"
bandwidth = 1000000
description = "My Interface Description"
shutdown = false
ip_proxy_arp = false
Expand Down Expand Up @@ -109,6 +110,7 @@ resource "iosxe_interface_ethernet" "example" {
- `auto_qos_voip_cisco_phone` (Boolean) Trust the QoS marking of Cisco IP Phone
- `auto_qos_voip_cisco_softphone` (Boolean) Trust the QoS marking of Cisco IP SoftPhone
- `auto_qos_voip_trust` (Boolean) Trust the DSCP/CoS marking
- `bandwidth` (Number) - Range: `1`-`200000000`
- `bfd_echo` (Boolean) Use echo adjunct as bfd detection mechanism
- `bfd_enable` (Boolean) Enable BFD under the interface
- `bfd_interval` (Number) - Range: `50`-`9999`
Expand Down
1 change: 1 addition & 0 deletions examples/resources/iosxe_interface_ethernet/resource.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
resource "iosxe_interface_ethernet" "example" {
type = "GigabitEthernet"
name = "3"
bandwidth = 1000000
description = "My Interface Description"
shutdown = false
ip_proxy_arp = false
Expand Down
3 changes: 3 additions & 0 deletions gen/definitions/interface_ethernet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ attributes:
- yang_name: media-type
exclude_test: true
example: sfp
- yang_name: bandwidth/kilobits
tf_name: bandwidth
example: 1000000
- yang_name: switchport-conf/switchport
tf_name: switchport
exclude_test: true
Expand Down
4 changes: 4 additions & 0 deletions internal/provider/data_source_iosxe_interface_ethernet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions internal/provider/model_iosxe_interface_ethernet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions internal/provider/resource_iosxe_interface_ethernet.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions internal/provider/resource_iosxe_interface_ethernet_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions templates/guides/changelog.md.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ description: |-

# Changelog

## 0.5.5 (unreleased)

- Add `bandwidth` attribute to `iosxe_interface_ethernet` resource and data source

## 0.5.4

- Add `next_hop_self` and `next_hop_self_all` attributes to `iosxe_bgp_ipv4_unicast_vrf_neighbor` resource and data source
Expand Down

0 comments on commit 41ed80e

Please sign in to comment.