cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
400
Views
0
Helpful
0
Replies

Rest config not getting switchport vlan information

mustang_speirsy
Level 1
Level 1

I'm looking for API support on a C9500-16X running IOS-XE 17.6.3, but I have also seen the same issue on v16.6 code and 17.6.4.

If you have a trunk interface with enough VLAN allowed entries that the cli displays the list as multiple lines with the “add” option e.g.:
interface TenGigabitEthernet1/0/1
switchport trunk native vlan 99
switchport trunk allowed vlan 1,4,8,10,30,40,50
switchport trunk allowed vlan add 202,241,342,400,1101
switchport mode trunk
switchport nonegotiate
end 

When I use RESTCONF to interrogate the config with a URL like:https://<ip>/restconf/data/Cisco-IOS-XE-native:native/interface/TenGigabitEthernet The results only list the final 'add' line - and lose the 'switchport trunk allowed vlan' line:
//
"switchport": {
  "Cisco-IOS-XE-switch:mode": {
    "trunk": {}
  },
  "Cisco-IOS-XE-switch:nonegotiate": [null],
  "Cisco-IOS-XE-switch:trunk": {
    "allowed": {
      "vlan": {
        "add": "202,241,342,400,1101"
      }
    },
    "native": {
      "vlan": {
        "vlan-id": 99
      }
    }
  }


It appears it doesn't see the information regarding the config line:

switchport trunk allowed vlan 1,4,8,10,30,40,50

Am I doing something wrong? Is there another way to get this information or is this a bug?

0 Replies 0