Skip to content

Commit

Permalink
Add speed options to interface ethernet resource
Browse files Browse the repository at this point in the history
  • Loading branch information
danischm committed Oct 28, 2023
1 parent 3fc2dbe commit abcdeed
Show file tree
Hide file tree
Showing 9 changed files with 372 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.2 (unreleased)

- Add `speed` options to `interface_ethernet` resource and data source

## 0.5.1

- Add `iosxe_vlan_filter` resource and data source
Expand Down
8 changes: 8 additions & 0 deletions docs/data-sources/interface_ethernet.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,14 @@ data "iosxe_interface_ethernet" "example" {
- `spanning_tree_guard` (String) Change an interface's spanning tree guard mode
- `spanning_tree_link_type` (String) Specify a link type for spanning tree tree protocol use
- `spanning_tree_portfast_trunk` (Boolean) Enable portfast on the interface even in trunk mode
- `speed_100` (Boolean) 100 Mbps operation
- `speed_1000` (Boolean) 1000 Mbps operation
- `speed_10000` (Boolean) 10000 Mbps operation
- `speed_100000` (Boolean) 100000 Mbps operation
- `speed_2500` (Boolean) 2500 Mbps operation
- `speed_25000` (Boolean) 25000 Mbps operation
- `speed_40000` (Boolean) 40000 Mbps operation
- `speed_5000` (Boolean) 5000 Mbps operation
- `switchport` (Boolean)
- `trust_device` (String) trusted device class
- `unnumbered` (String) Enable IP processing without an explicit address
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.2 (unreleased)

- Add `speed` options to `interface_ethernet` resource and data source

## 0.5.1

- Add `iosxe_vlan_filter` resource and data source
Expand Down
8 changes: 8 additions & 0 deletions docs/resources/interface_ethernet.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,14 @@ resource "iosxe_interface_ethernet" "example" {
- `spanning_tree_link_type` (String) Specify a link type for spanning tree tree protocol use
- Choices: `point-to-point`, `shared`
- `spanning_tree_portfast_trunk` (Boolean) Enable portfast on the interface even in trunk mode
- `speed_100` (Boolean) 100 Mbps operation
- `speed_1000` (Boolean) 1000 Mbps operation
- `speed_10000` (Boolean) 10000 Mbps operation
- `speed_100000` (Boolean) 100000 Mbps operation
- `speed_2500` (Boolean) 2500 Mbps operation
- `speed_25000` (Boolean) 25000 Mbps operation
- `speed_40000` (Boolean) 40000 Mbps operation
- `speed_5000` (Boolean) 5000 Mbps operation
- `switchport` (Boolean)
- `trust_device` (String) trusted device class
- Choices: `cisco-phone`, `cts`, `ip-camera`, `media-player`
Expand Down
40 changes: 40 additions & 0 deletions gen/definitions/interface_ethernet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,46 @@ attributes:
- yang_name: ip/dhcp/Cisco-IOS-XE-dhcp:snooping/trust
example: true
test_tags: [C9000V]
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/value-100/value-100
xpath: Cisco-IOS-XE-ethernet:speed/value-100
tf_name: speed_100
example: true
exclude_test: true
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/value-1000/value-1000
xpath: Cisco-IOS-XE-ethernet:speed/value-1000
tf_name: speed_1000
example: true
exclude_test: true
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/value-2500/value-2500
xpath: Cisco-IOS-XE-ethernet:speed/value-2500
tf_name: speed_2500
example: true
exclude_test: true
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/value-5000/value-5000
xpath: Cisco-IOS-XE-ethernet:speed/value-5000
tf_name: speed_5000
example: true
exclude_test: true
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/value-10000/value-10000
xpath: Cisco-IOS-XE-ethernet:speed/value-10000
tf_name: speed_10000
example: true
exclude_test: true
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/value-25000/value-25000
xpath: Cisco-IOS-XE-ethernet:speed/value-25000
tf_name: speed_25000
example: true
exclude_test: true
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/value-40000/value-40000
xpath: Cisco-IOS-XE-ethernet:speed/value-40000
tf_name: speed_40000
example: true
exclude_test: true
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/value-100000/value-100000
xpath: Cisco-IOS-XE-ethernet:speed/value-100000
tf_name: speed_100000
example: true
exclude_test: true

test_prerequisites:
- path: Cisco-IOS-XE-native:native/vrf/definition=VRF1
Expand Down
32 changes: 32 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.

Loading

0 comments on commit abcdeed

Please sign in to comment.