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
Get a duplicated key and their attributes #1612
Comments
I think you want to use a list https://github.com/google/textfsm/wiki/Code-Lab#using-list |
Ah, in your example raw output the hosts that don't match do not have a
NX-OS Minor item. 😄 Please capitalize the capture group names in templates to adhere with ntc-templates project standards which aids in the readability of the template. 😎 Example:
|
Appreciate your answer! 😄 |
@diogopxosys Each of those "sections" will be independent of one another in the sense that TextFSM won't match up items from disparate sections. I'll have to set up some trap config and see what the output looks like. Ah, this may require parsing several commands (multiple templates) to get all the information. It would be really great if we could find all this information in the output from a single command! 😆 Though it does look like |
So I have a case where the output from a cmd 'show runing' in a nexus give me something like this:
The template that i started was:
I know with this template i only get the values from hosts like '10.132.300.101', '10.105.10.104'. But the challenge here is how can i capture the hosts ('10.140.300.200', '10.151.230.230') where misses one or even the two last lines of the template?
I tried an infinitude of solutions/combinations, but maybe I didn't catch the textFSM essence.
Anyone can help me with this?
The text was updated successfully, but these errors were encountered: