Closed mpenning closed 6 years ago
It would be awesome if that could be addressed. Thank you for an amazing toolkit!
To use the new nxos parser (alpha-quality at best),
from ciscoconfparse import CiscoConfParse
CONFIG = """ip route 0.0.0.0/0 port-channel1 1.1.1.1
ip route 1.1.1.2/32 Vlan42 2.2.2.2"""
parse =CiscoConfParse(CONFIG.splitlines(), syntax='nxos', factory=True)
Thank you!
Fails with
ValueError: Could not parse 'ip route 0.0.0.0/0 port-channel1 1.1.1.1'
This is a known-failure; this configuration will parse correctly when I add a
factory=True, syntax='nxos'
parser. The workaround is to parse withfactory=False
(i.e. the default CiscoConfParse() behavior).