-
Notifications
You must be signed in to change notification settings - Fork 729
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
Added template for Alcatel AOS: show interfaces port
#1908
base: master
Are you sure you want to change the base?
Added template for Alcatel AOS: show interfaces port
#1908
Conversation
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.
@evilmonkey19
Might you have or be able to get raw data where the #
Wait To Restore is in effect?
This would improve the test data! Thank you.
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.
Unfortunately I don't :(. Either I know how to make it work. It is an option that i know it exists but I don't use it at all. If it happens that you know hot to make it work I have equipment to get the output :)
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.
Unfortunately I don't :(. Either I know how to make it work. It is an option that i know it exists but I don't use it at all. If it happens that you know hot to make it work I have equipment to get the output :)
Page 1-33 (or search for interfaces wait-to-restore
)
interfaces {slot chassis/slot| port chassis/slot/port[-port2]} wait-to-restore num
@evilmonkey19
From the sounds of it, once you set a "wait to restore" timer on a (spare?) port, cause the port to shutdown (I would think the easiest is to administratively shut the port down from the CLI then grab output.
Let me know how that goes! 😀
ntc_templates/templates/alcatel_aos_show_interfaces_port.textfsm
Outdated
Show resolved
Hide resolved
tests/alcatel_aos/show_interfaces_port/alcatel_aos_show_interfaces_port_R6.yml
Outdated
Show resolved
Hide resolved
Co-authored-by: Michael Bear <[email protected]>
…aces_port_R6.yml Co-authored-by: Michael Bear <[email protected]>
…/evilmonkey19/ntc-templates into alcatel_aos_show_interfaces_port
I commited your sugggestion @mjbear and I also fixed a small bug with the alias (the ""). Do you have any suggestion on how to catch it in a more elegant way? |
Hello! I'll figure yes and at that point we can make the ALIAS regex capture spaces, but also make it optional. There are at least two ways, but I'll stick with the simplest by using On WTR, I'll have to look at the manual and we try to get it to happen. Do you have AOS devices that in dev/test environment? 😜 |
Value ALIAS (\S.+\S) | ||
|
||
Start | ||
^\s*-+\+ | ||
^\s*${WTR_RUNNING}${PERMANENT_SHUTDOWN}${PORT}\s+${ADMIN_STATUS}\s+${LINK_STATUS}\s+${VIOLATIONS}\s+${RECOVERY_TIME}\s+${RECOVERY_MAX}\s+${WTR_TIME}\s+(""|"${ALIAS}")\s*$$ -> Record |
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.
Value ALIAS (\S.+\S) | |
Start | |
^\s*-+\+ | |
^\s*${WTR_RUNNING}${PERMANENT_SHUTDOWN}${PORT}\s+${ADMIN_STATUS}\s+${LINK_STATUS}\s+${VIOLATIONS}\s+${RECOVERY_TIME}\s+${RECOVERY_MAX}\s+${WTR_TIME}\s+(""|"${ALIAS}")\s*$$ -> Record | |
Value ALIAS (.*) | |
Start | |
^\s*-+\+ | |
^\s*${WTR_RUNNING}${PERMANENT_SHUTDOWN}${PORT}\s+${ADMIN_STATUS}\s+${LINK_STATUS}\s+${VIOLATIONS}\s+${RECOVERY_TIME}\s+${RECOVERY_MAX}\s+${WTR_TIME}\s+"${ALIAS}"\s*$$ -> Record |
Simple regex for ALIAS
that will match zero or more characters, including spaces.
- single words
- multiple words separated by spaces
- empty strings are fine too
No description provided.