Closed mew1033 closed 9 years ago
Thank you for your bug report... please add:
CiscoConfParse('/path/to/your/config', debug=True)
(feel free to add any other CLI options of course). I recently pushed version 1.2.27, which may help fix your problemI tried a simple test with this (ciscoconfparse 1.2.25 on Windows Vista 64-bit), but could not reproduce the problem you have described...
c:\Python27>python
Python 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)] on win
32
Type "help", "copyright", "credits" or "license" for more information.
>>> from ciscoconfparse import CiscoConfParse
>>> CONFIG = """!
... interface FastEthernet0/0
... ip address 1.1.1.1 255.255.255.0
... !
... banner motd ^
... Hello world
... ^
... !
... end"""
>>> parse = CiscoConfParse(CONFIG.splitlines())
>>>
This should be fixed in 1.2.30
I may be doing something wrong, but from what I can tell, the following line is breaking the parse command:
banner motd
It gives this error: