Skip to content

Cisco-IOS-XE-native.yang produces incomplete vlan information when using list and add list #1461

@rhasti

Description

@rhasti

Environment Cisco IOS XE Software, Version 17.06.03
using restconf with 'application/yang-data+json' calling Cisco-IOS-XE-native:native/interface

Config Snippet

interface GigabitEthernet1/0/34
description ESXI - VM-LAN - esxi-trz-10 - lan2/vmnic1
switchport trunk allowed vlan 11,12,14,15,22,23,101,168,169,171-173,175
switchport trunk allowed vlan add 300-302,666,2010-2012
switchport mode trunk
mtu 9198
spanning-tree portfast
spanning-tree guard root
hold-queue 4000 out
end

is producing following output

{'name': 'GigabitEthernetGigabitEthernet1/0/34',
 'description': 'ESXI - VM-LAN - esxi-trz-10 - lan2/vmnic1',
 'switchport-config': {'switchport': {'Cisco-IOS-XE-switch:mode': {'trunk': {}},
   'Cisco-IOS-XE-switch:trunk': {'allowed': {'vlan': {'add': '300-302,666,2010-2012'}}}}},
 'hold-queue': [{'direction': 'out', 'queue-length': 4000}],
 'mtu': 9198,
 'Cisco-IOS-XE-spanning-tree:spanning-tree': {'guard': 'root', 'portfast': {}}}

which is missing vlans 11,12,14,15,22,23,101,168,169,171-173,175

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions