-
Notifications
You must be signed in to change notification settings - Fork 732
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? 😜 |
ntc_templates/templates/alcatel_aos_show_interfaces_port.textfsm
Outdated
Show resolved
Hide resolved
Co-authored-by: Michael Bear <[email protected]>
ntc_templates/templates/alcatel_aos_show_interfaces_port.textfsm
Outdated
Show resolved
Hide resolved
Co-authored-by: Jacob McGill <[email protected]>
Implementing the |
ntc_templates/templates/alcatel_aos_show_interfaces_port.textfsm
Outdated
Show resolved
Hide resolved
@evilmonkey19 🔥 Here's my notes from earlier. |
This is a raw output using the commands you suggest :)
|
Co-authored-by: Jacob McGill <[email protected]>
Co-authored-by: Michael Bear <[email protected]>
@evilmonkey19 There are fairly minor merge conflicts (I ran through fixing them just to see).
Not horrible, but an extra obstacle before the automatic tests for this project run. |
ntc_templates/templates/alcatel_aos_show_interfaces_port.textfsm
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,25 @@ | |||
Value PORT ((\d+\/?)+) | |||
Value PERMANENT_SHUTDOWN (\*?) |
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.
@jmcgill298
Is there a preference to whether the question mark ?
to make the regex optional is in the capture group or is placed in the rules?
(for example the line above and a couple of others)
No problem :) I can do the force push for sure |
Co-authored-by: Michael Bear <[email protected]>
No description provided.