Closed Quadrai closed 7 years ago
just change your comment delimiter to something else other than the default ! and it will work for you.
p = CiscoConfParse("etc/source.ios", debug=True, comment='~')
Thank you for reporting this issue; I committed a fix in 1.2.47; please test and let me know.
No feedback since early March 2017, I am closing for now.
source.ios:
Code:
[ciscoconfparse init] [DEBUG] 16:33:53 parsing from 'etc/source.ios' with ios syntax [ciscoconfparse _banner_mark_regex] [DEBUG] 16:33:53 banner_lead = 'banner motd' [ciscoconfparse _banner_mark_regex] [DEBUG] 16:33:53 bannerdelimit = '^' [ciscoconfparse _banner_mark_regex] [DEBUG] 16:33:53 banner motd starts at line 1
After a quick look through the code it seems break on the unindented ! as a comment instead of part of the banner.