Skip to content

Commit

Permalink
Add negotiation auto attribute to interface ethernet resource (#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
swarudka authored Mar 6, 2024
1 parent 56ba96a commit 232964c
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/data-sources/interface_ethernet.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ data "iosxe_interface_ethernet" "example" {
- `mab` (Boolean) MAC Authentication Bypass Interface Config Commands
- `mab_eap` (Boolean) Use EAP authentication for MAC Auth Bypass
- `media_type` (String) Media type
- `negotiation_auto` (Boolean) Enable link autonegotiation
- `service_policy_input` (String) Assign policy-map to the input of an interface
- `service_policy_output` (String) Assign policy-map to the output of an interface
- `shutdown` (Boolean) Shutdown the selected interface
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 @@ -60,6 +60,7 @@ resource "iosxe_interface_ethernet" "example" {
]
arp_timeout = 300
spanning_tree_link_type = "point-to-point"
negotiation_auto = false
service_policy_input = "POLICY1"
service_policy_output = "POLICY1"
ip_flow_monitors = [
Expand Down Expand Up @@ -184,6 +185,7 @@ resource "iosxe_interface_ethernet" "example" {
- `mab_eap` (Boolean) Use EAP authentication for MAC Auth Bypass
- `media_type` (String) Media type
- Choices: `auto-select`, `rj45`, `sfp`
- `negotiation_auto` (Boolean) Enable link autonegotiation
- `service_policy_input` (String) Assign policy-map to the input of an interface
- `service_policy_output` (String) Assign policy-map to the output of an interface
- `shutdown` (Boolean) Shutdown the selected interface
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
Expand Up @@ -45,6 +45,7 @@ resource "iosxe_interface_ethernet" "example" {
]
arp_timeout = 300
spanning_tree_link_type = "point-to-point"
negotiation_auto = false
service_policy_input = "POLICY1"
service_policy_output = "POLICY1"
ip_flow_monitors = [
Expand Down
2 changes: 2 additions & 0 deletions gen/definitions/interface_ethernet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ attributes:
tf_name: speed_100000
example: true
exclude_test: true
- yang_name: Cisco-IOS-XE-ethernet:negotiation/auto
example: false
- yang_name: Cisco-IOS-XE-ethernet:speed/speed-choice/nonegotiate/nonegotiate
xpath: Cisco-IOS-XE-ethernet:speed/nonegotiate
tf_name: speed_nonegotiate
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.

23 changes: 23 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.

4 changes: 4 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.

0 comments on commit 232964c

Please sign in to comment.