Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for show running-config all #14

Open
mikael-andre opened this issue Oct 6, 2024 · 3 comments
Open

Add support for show running-config all #14

mikael-andre opened this issue Oct 6, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@mikael-andre
Copy link

Hi,

First, I want to thank you for the great job. I reused this module in my job.

After analyze, some commands didn't appear because they are, by default, implemented (for example ip ssh version 2)
To get entire configuration, I ran show running-configuration full.
I ran my script with the full configuration.

I removed all empty lines, lines beginning with !.
In attached file,I put output errors.

After deep dive reverse engineering, I guess some commands are not implemented in your module.
ValueError: ciscoconfparse2.py config_line_factory(all_lines=[], line=ip route static adjust-time 60, comment_delimiters=[['!']], syntax=ios) could not find a subclass of BaseCfgLine()

Many thanks and have a nice day.
output_error.txt

@mpenning mpenning self-assigned this Nov 21, 2024
@mpenning
Copy link
Owner

mpenning commented Nov 21, 2024

I expect ip route static adjust-time 60 to cause a problem with factory parsing...

You have choices... your simplest choice is to parse with factory=False, but admittedly you may be using this-factory-drug-I-published years ago and I now regret doing... lol...

Thoughts?
\mike

@mpenning mpenning added the bug Something isn't working label Nov 21, 2024
@mikael-andre
Copy link
Author

Hi,
Thank you for your answer.

I tried with factory=False, same behavior.
I alse deleted line ip route static adjust-time 60, another line was not correctly parsed ip route static inter-vrf.
I don't know if it's root cause but in both line there is a dash. Could this dash be the issue ?

Mikael

@mpenning
Copy link
Owner

mpenning commented Nov 29, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants