Skip to content
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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Value PORT (\S+)
Value PERMANENT_SHUTDOWN (\*?)
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
Value ADMIN_STATUS (\S+)
Value LINK_STATUS (\S+)
Value VIOLATIONS (\S+)
Value RECOVERY_TIME (\d+)
Value RECOVERY_MAX (\d+)
Value WTR_RUNNING (\#?)
Value WTR_TIME (\d+)
Value ALIAS (.*)

Start
^\s*-+\+ -> Table
evilmonkey19 marked this conversation as resolved.
Show resolved Hide resolved
^Legends: WTR - Wait To Restore
^\s+#
^\s+\*
^\s*Slot/\s+Admin\s+Link\s+Violations\s+Recovery\s+Recovery\s+WTR\s+Alias\s*$$
^\s*Port\s+Status\s+Status\s+Time\s+Max\s+\(sec\)\s*$$
^\s*$$
^.*$$ -> Error

evilmonkey19 marked this conversation as resolved.
Show resolved Hide resolved
Table
^\s*${PERMANENT_SHUTDOWN}${PORT}\s+${ADMIN_STATUS}\s+${LINK_STATUS}\s+${VIOLATIONS}\s+${RECOVERY_TIME}\s+${RECOVERY_MAX}\s+(?:${WTR_RUNNING}\s+)?${WTR_TIME}\s+"${ALIAS}"\s*$$ -> Record
^\s*$$
^.*$$ -> Error
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Template, Hostname, Platform, Command
alcatel_aos_show_lldp_remote-system.textfsm, .*, alcatel_aos, sh[[ow]] lldp r[[emote-system]]
alcatel_aos_show_interfaces_status.textfsm, .*, alcatel_aos, sh[[ow]] in[[terfaces]] st[[atus]]
alcatel_aos_show_mac-address-table.textfsm, .*, alcatel_aos, sh[[ow]] mac-(a[[ddress-table]]|l[[earning]])
alcatel_aos_show_interfaces_port.textfsm, .*, alcatel_aos, sh[[ow]] in[[terfaces]] p[[ort]]
alcatel_aos_show_port-security.textfsm, .*, alcatel_aos, sh[[ow]] port-[[security]]
alcatel_aos_show_vlan_port.textfsm, .*, alcatel_aos, sh[[ow]] vl[[an]] (p[[ort]]|m[[embers]])
alcatel_aos_show_chassis.textfsm, .*, alcatel_aos, sh[[ow]] ch[[assis]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Legends: WTR - Wait To Restore
# - WTR Timer is Running & Port is in wait-to-restore state
* - Permanent Shutdown

Slot/ Admin Link Violations Recovery Recovery WTR Alias
Port Status Status Time Max (sec)
------+----------+---------+----------+----------+----------+----------+-----------------------------------------
*1/1 enable up none 300 10 0 "Hello"
1/2 enable down none 300 10 0 ""
1/11 enable down none 300 10 # 10 ""
1/17 disable down none 300 10 0 ""
1/23 disable down none 300 10 0 ""
1/25 enable up none 300 10 0 ""
1/26 enable down none 300 10 0 ""
1/28 enable down none 0 0 0 ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
---
parsed_sample:
- admin_status: "enable"
alias: "Hello"
link_status: "up"
permanent_shutdown: "*"
port: "1/1"
recovery_max: "10"
recovery_time: "300"
violations: "none"
wtr_running: ""
wtr_time: "0"
- admin_status: "enable"
alias: ""
link_status: "down"
permanent_shutdown: ""
port: "1/2"
recovery_max: "10"
recovery_time: "300"
violations: "none"
wtr_running: ""
wtr_time: "0"
- admin_status: "enable"
alias: ""
link_status: "down"
permanent_shutdown: ""
port: "1/11"
recovery_max: "10"
recovery_time: "300"
violations: "none"
wtr_running: "#"
wtr_time: "10"
- admin_status: "disable"
alias: ""
link_status: "down"
permanent_shutdown: ""
port: "1/17"
recovery_max: "10"
recovery_time: "300"
violations: "none"
wtr_running: ""
wtr_time: "0"
- admin_status: "disable"
alias: ""
link_status: "down"
permanent_shutdown: ""
port: "1/23"
recovery_max: "10"
recovery_time: "300"
violations: "none"
wtr_running: ""
wtr_time: "0"
- admin_status: "enable"
alias: ""
link_status: "up"
permanent_shutdown: ""
port: "1/25"
recovery_max: "10"
recovery_time: "300"
violations: "none"
wtr_running: ""
wtr_time: "0"
- admin_status: "enable"
alias: ""
link_status: "down"
permanent_shutdown: ""
port: "1/26"
recovery_max: "10"
recovery_time: "300"
violations: "none"
wtr_running: ""
wtr_time: "0"
- admin_status: "enable"
alias: ""
link_status: "down"
permanent_shutdown: ""
port: "1/28"
recovery_max: "0"
recovery_time: "0"
violations: "none"
wtr_running: ""
wtr_time: "0"