04-29-2022 01:33 AM - edited 04-29-2022 05:31 AM
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,
04-30-2022 03:38 AM
a-1000 <-a letter meaning auto, i.e. both side auto negotiation and finally agree to be 1000
05-08-2022 11:11 PM - edited 05-08-2022 11:12 PM
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,
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide