-
Notifications
You must be signed in to change notification settings - Fork 721
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
Arista eos show port channel summary #757
Arista eos show port channel summary #757
Conversation
….com/JoeyG1973/ntc-templates into arista_eos_show_port-channel_summary
Value List PHYS_IFACE_STATUS (\(.+?\)) | ||
|
||
|
||
Start |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Start | |
Value PORT_CHANNEL (Po\d+) | |
Value PORT_CHANNEL_STATUS (\S+) | |
Value PROTOCOL (\w+) | |
Value PROTOCOL_STATE (\S+) | |
Value List PHYS_IFACE (Et\S+) | |
Value List PHYS_IFACE_STATUS (\S+) |
I would say to make the values like this and account for the parenthesis in the states instead of capturing them as well. You just capture the value in-between them.
Start | |
Start | |
^\s*Flags | |
^-+ | |
^\s+\S\s+- | |
^Number | |
^\s+Port-Channel\s+Protocol\s+Ports\s+$$ -> PCS | |
^\s*$$ | |
^. -> Error |
Just to be more verbose in what we're attempting to account for in the data.
Here are two other suggestions:
^\s*Po\d+.+(Et.+?\(.+?\)\s){1}${PHYS_IFACE}\(${PHYS_IFACE_STATUS}\)(\s|$$) -> Continue
instead of:
^\s*Po\d+\(\w+\)\s+\w+(\(\w+\*\)|\(\w+\))\s+(Et.+?\(.+?\)\s){1}${PHYS_IFACE}${PHYS_IFACE_STATUS}(\s|$$) -> Continue
for each of those lines.
^\s+(Et.+?\(.+?\)\s){1}${PHYS_IFACE}${PHYS_IFACE_STATUS}(\s|$$) -> Continue
instead of:
^\s+\s+(Et.+?\(.+?\)\s){1}${PHYS_IFACE}${PHYS_IFACE_STATUS}(\s|$$) -> Continue
for each of those lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied and modified the cisco_nxos_show_port-channel_summary so that captures the parenthesis as well. I will change it in mine but please note that this is the way it is is in Cisco NXOS so you guys should probably change that as well.
I think this line is not correct
|
ISSUE TYPE
COMPONENT
arista_eos_show_port-channel_summary
SUMMARY
added parsing for artists eos show port-channel summary