Closed psyc0 closed 6 years ago
Please post a sanitized version of your juniper configuration inside this issue so I can reproduce the problem
Came here to track the same issue, I was trying to use ciscoconfparse on juniper files retrieved by RANCID. The problem appears to be caused by a "#" character on an otherwise bare-line
Removing that # + bare-line or adding another character appears to solve the issue.
# RANCID-CONTENT-TYPE: juniper
# CB 0 ACBC OK
#
# asdjajsdlasd> show configuration
## Last commit: 2017-09-24 18:57:09 AEST by bob
version 13.3R5.9;
groups {
}
I'm not sure when this was fixed, but it's definitely working with the config @wilmington posted... tested in version 1.2.53 and had no issues...
Hi,
im trying to use confparse to parse a juniper config but I immediately run in to the following error as soon as I try to create the object (the conf is 3000+ lines long). Im running 1.2.47 currently.
parse2 = CiscoConfParse('config.junos', syntax='junos', debug=True, comment='#')