Skip to content

ios parsing error for vlan ranges #49

@TestingBytes

Description

@TestingBytes

If an ios config contains a range of vlans a parsing error is observed.

Example config:

vlan 60
name VLAN_A
!
vlan 64-65
!
vlan 80
name VLAN_B

Result:

File "/home/.local/lib/python3.7/site-packages/ntc_rosetta/parsers/openconfig/ios/openconfig_vlan/vlans.py", line 44, in vlan_id
return int(self.yy.key)
ValueError: invalid literal for int() with base 10: '64-65'

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