Closed i-m-d closed 9 months ago
Please add the entire F5 configuration, including all the info mentioned above; I won't try to tackle part of this problem without seeing what else may be broken in the config.
Sorry for delay.
The entire f5 configuration is over 25000 lines and has private info.
I can upload a portion with a few lines.
Cheers
The main problem is the irule config that is not formated, it is free format config. The f5 config (other than irule = ltm rule) is formated correctly by the system. The irule config are written in a text box with free format, so, curly brackets may be incorrectly set, so CiscoConfParse produces erroneous parsing.
The entire f5 configuration is over 25000 lines and has private info.
Sanitize the private information and please email the file to me... penningtonthing@gmail.com. I will be forced to close this if I can't get a complete config file.
parse with ERROR:
sys syslog {
remote-servers {
/Common/remotesyslog1 {
host 10.0.0.45 }
}
}
sys diags ihealth {
expiration 30
no-ihealth false
options none
password none
user none
}
This is fixed in ciscoconfparse2 version 0.5.0
FYI... several other things in the config-f5.txt do not parse correctly, but I will handle that as a different effort (which may require a dedicated parser).
Contact Details
mundoimd@gmail.com
What happened?
I am using CiscoConfigParse to parse F5 BigIP configuration files, which work very well, but i have a bug, but i think the problem is how F5 config file write the config, i explain:
if a code block contains a "{" and after contains text WITHOUT a "}" in the same LINE, the parse do not work correctly.
if a code block contains text before a "}" and not a "{" in the same LINE, the parse do not work correctly.
Config sample1 that parse OK:
Config sample2 that parse with ERROR:
Config sample3 that parse with ERROR:
CiscoConfParse Version
Version 1.7.24
What Operating System are you using?
Linux - Debian, Ubuntu, CentOS, RHEL or others
What Python version(s) have this problem?
Python 3.9
Show us how to reproduce the problem. Please tell us if the problem is specific to certain inputs or situations.
Python tracebacks
Relevant log output
No response
Code of Conduct