Press "Enter" to skip to content

RESTCONF call to GET/UPDATE switchport configured vlan for IOS-XE running on CAT 3850

        I'm unable to figure out the restconf URI needed to GET the configured VLAN for a given switchport interface for IOS-XE.
I would also like to be able to UPDATE a switchport-access VLAN given a port. I've looked at the below modules but havent had any luck
  • Cisco-IOS-XE-vlan.yang/Cisco-IOS-XE-vlan-oper.yang - this module appears to provide interface data given the VLAN ID
  • Cisco-IOS-XE-native.yang
  • Cisco-IOS-XE-interfaces.yang - the "groupting interface-switchport-grouping" looked promising, but it appears to be for settting up config, NOT GETTING config
  • Cisco-IOS-XE-interfaces-oper.yang
I also tried searching through without much luck there either. Is there a way to get the configured switchport-access-vlan for a given port using Cisco-IOS-XE yang models ? If yes, what would the restconf URI be ? If not, is there a workaround ? For a potential workaround, i'm thinking I could use the vlan-related module to get all vlan memberships, then loop through the membership list and look for the desired interface. Also, what would the URI and request body look like for a RESTCONF api call to update a switchport access vlan, given a port ?

Be First to Comment

Leave a Reply

%d bloggers like this: