-
Notifications
You must be signed in to change notification settings - Fork 735
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
New Template: cisco_nxos_show_hsrp_all #760
New Template: cisco_nxos_show_hsrp_all #760
Conversation
^\s+Virtual\s+IP\s+address\s+is\s+${PRIMARY_IPV4_ADDRESS}\s+.*$$ | ||
^\s+Secondary Virtual IP address is ${SECONDARY_IPV4_ADDRESS}\s*$$ | ||
^\s+Active router is ${ACTIVE_ROUTER}\s*$$ | ||
^\s+Active router is ${ACTIVE_IP_ADDRESS}\s?, priority ${ACTIVE_PRIORITY} expires in ${ACTIVE_EXPIRE}.*$$ |
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.
Do you mind replacing the static spaces with \s+
all through the template?
Also, I would get rid of the record on whitespace and add the follow right below Start
:
^\s+Active router is ${ACTIVE_IP_ADDRESS}\s?, priority ${ACTIVE_PRIORITY} expires in ${ACTIVE_EXPIRE}.*$$ | |
Start | |
^Vlan -> Continue.Record |
Also:
^\s+Active router is ${ACTIVE_IP_ADDRESS}\s?, priority ${ACTIVE_PRIORITY} expires in ${ACTIVE_EXPIRE}.*$$ | |
# Catch unexpected non-empty lines (secondary IP's at the end of the block for example) | |
^\s+\d+\.\d+\.\d+\.\d+$$ |
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.
This went under the radar, my bad. Will do ASAP !
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.
Replacing whitespaces = done.
^Vlan -> Continue.Record :
This won't work because the interface name can be anything, not only "Vlan". "Continue.Record" at the beginning isn't working either (empty fields are recorded and following data is shifted)
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 don't see these changes either :(
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.
The "^Vlan -> Continue.Record" does not work as intended, what do you suggest ? Let me know if you want to discuss this.
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.
You can just leave it as is right now, but push the white space changes up.
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.
Just pushed the changes to the branch, my bad.
ISSUE TYPE
COMPONENT
Cisco NXOS - show hsrp all
SUMMARY
Note: some items will stay empty depending on which is the active router.