cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1394
Views
5
Helpful
2
Replies

Auto negotiate in Cisco-IOS-XE-interfaces-oper.yang

leoo1
Level 1
Level 1

Hello,

I need to retrieve the information about the configured speed and duplex mode, so if the port is configured in auto mode, I need to know it's auto negotiate. For this I use the Cisco-IOS-XE-interface-common YANG model but I have an issue. When a port is configured in auto (speed auto and duplex auto), but nothing is connected behind, it shows me the correct value, auto-speed and auto-duplex. But when something is connected to this port, these values change to speed-1gb and full-duplex (for example). After reading the descriptions of these leafs, I understand it shows the value who has been negotiated. But for me the leaf "auto-negotiate" should be TRUE, instead of FALSE because the port is still configured to auto for speed and duplex.

PS: I use actually IOS XE 16.02.06 and I try on a C9200, C9300 and C9401R

Thanks,

2 Replies 2

image02238.jpg

a-1000 <-a letter meaning auto, i.e. both side auto negotiation and finally agree to be 1000 

Hello,

Thank you for your reply, I understand how it works so there is no way to retrieve by REST API if the port is configured in auto or not ?

Thanks,