arezazadeh / cisco_config_parser

This library is used for Network Automation involving Cisco Routers and Switch. It will parse Cisco IOS, IOS-XE, IOS-XR, and NXOS configuration file into objects and/or json format
7 stars 1 forks source link

allowed_vlan typo #18

Closed kiksen closed 4 hours ago

kiksen commented 5 days ago

Hello, I think there is an "s" missing somewhere.

I'm parsing:

interface TenGigabitEthernet1/0/7 description Uplink1 switchport trunk allowed vlan 30,40,50 switchport mode trunk source template Access service-policy output QUEUE-OUT_

get_l2_trunk_interfaces returns the following dict:

{'name': 'TenGigabitEthernet1/0/7', 'description': 'Uplink1', 'allowed_vlans': None, 'dhcp_snooping': None, 'dhcp_relay': None, 'voice_vlan': None, 'state': None, 'spanning_tree': None, 'native_vlan': None, 'children': ['description Uplink1', 'switchport trunk allowed vlan 30,40,50', 'switchport mode trunk', 'source template Access', 'service-policy output QUEUE-OUT'], 'allowed_vlan': '30,40,50'}

there is one allowed_vlan and allowed_vlans. Probably only allowed_vlans is needed.

Thank you! Regards

arezazadeh commented 4 days ago

Thank you i will look into this

arezazadeh commented 4 hours ago

@kiksen this is fixed in 2.2.6 Thanks for reporting it