Replies: 1 comment
-
You would probably have to just code it into Netmiko i.e.
Or you could bypass Netmiko's built-in use_textfsm=True to send_command and do the conversion yourself (i.e. recreate that function and drop the empty list check). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have created a textfsm template for cisco_ios "show port-security" and it works for the case where a show port-security returns interface rows but if there are no interface rows it just returns the raw output. This seems to me that it is a failed condition and what I would like to see is an empty list.
My template looks like:
This output will parse correctly:
This output will not parse correctly:
I looked at the Netmiko code and I think this is determined in netmiko.utilities.get_structured_data()
textfsm.ParseCmd()
does return an empty list.Any advice on how I should handle this situation?
Thanks,
Barry
Beta Was this translation helpful? Give feedback.
All reactions