-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding template for Alcatel AOS (only R8):
show interfaces alias
(#…
- Loading branch information
1 parent
3aad889
commit 251bf41
Showing
4 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
ntc_templates/templates/alcatel_aos_show_interfaces_alias.textfsm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Value PORT (\S+) | ||
Value ADMIN_STATUS (\S+) | ||
Value LINK_STATUS (\S+) | ||
Value WAIT_TO_RESTORE (\d+) | ||
Value WAIT_TO_SHUTDOWN (\d+) | ||
Value ALIAS (.*) | ||
|
||
Start | ||
^\s*-+\+ -> Table | ||
^\s*Chas\/\s*$$ | ||
^\s*Slot\/\s+Admin\s+Link\s+WTR\s+WTS\s+Alias\s*$$ | ||
^\s*Port\s+Status\s+Status\s+\(sec\)\s+\(msec\)\s*$$ | ||
^\s*$$ | ||
^.*$$ -> Error | ||
|
||
Table | ||
^\s*${PORT}\s+${ADMIN_STATUS}\s+${LINK_STATUS}\s+${WAIT_TO_RESTORE}\s+${WAIT_TO_SHUTDOWN}\s+"${ALIAS}"\s*$$ -> Record | ||
^\s*$$ | ||
^.*$$ -> Error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/alcatel_aos/show_interfaces_alias/alcatel_aos_show_interfaces_alias.raw
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
Chas/ | ||
Slot/ Admin Link WTR WTS Alias | ||
Port Status Status (sec) (msec) | ||
--------+----------+---------+----------+----------+----------------------- | ||
1/1/1 enable up 0 0 "This is an example" | ||
2/1/10 enable down 0 0 "This_is_an_example" | ||
2/1/11 enable down 0 0 "This" |
20 changes: 20 additions & 0 deletions
20
tests/alcatel_aos/show_interfaces_alias/alcatel_aos_show_interfaces_alias.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
parsed_sample: | ||
- admin_status: "enable" | ||
alias: "This is an example" | ||
link_status: "up" | ||
port: "1/1/1" | ||
wait_to_restore: "0" | ||
wait_to_shutdown: "0" | ||
- admin_status: "enable" | ||
alias: "This_is_an_example" | ||
link_status: "down" | ||
port: "2/1/10" | ||
wait_to_restore: "0" | ||
wait_to_shutdown: "0" | ||
- admin_status: "enable" | ||
alias: "This" | ||
link_status: "down" | ||
port: "2/1/11" | ||
wait_to_restore: "0" | ||
wait_to_shutdown: "0" |