-
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 new command on Alcatel AOS:
show linkagg alias
(#1934)
- Loading branch information
1 parent
412e704
commit 27dbcac
Showing
4 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
ntc_templates/templates/alcatel_aos_show_linkagg_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,16 @@ | ||
Value NUMBER (\d+) | ||
Value AGGREGATE (\S+) | ||
Value SIZE (\d+) | ||
Value ADMIN_STATE (\S+) | ||
Value OPERATIONAL_STATE (\S+) | ||
Value N_ATTACHED_PORTS (\d+) | ||
Value N_POSSIBLE_PORTS (\d+) | ||
Value NAME (\S.+\S) | ||
|
||
Start | ||
^\s*Admin\s*Oper\s*Att\/Sel\s*$$ | ||
^\s*Number\s+Aggregate\s+Size\s+state\s+state\s+Ports\s+Name\s*$$ | ||
^\s*-+ | ||
^\s*${NUMBER}\s+${AGGREGATE}\s+${SIZE}\s+${ADMIN_STATE}\s+${OPERATIONAL_STATE}\s+${N_ATTACHED_PORTS}\s+${N_POSSIBLE_PORTS}\s+${NAME}\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_linkagg_alias/alcatel_aos_show_linkagg_alias_R8.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 @@ | ||
|
||
Admin Oper Att/Sel | ||
Number Aggregate Size state state Ports Name | ||
-------+----------+----+------------+-------+---------+-------------- | ||
2 Dynamic 2 ENABLED UP 2 2 LINK_LACP_CORE | ||
31 Dynamic 8 ENABLED DOWN 0 0 Created by Auto-Fabric on Mon Oct 6 00:00:00 2000 | ||
32 Dynamic 8 ENABLED DOWN 0 0 Created by Auto-Fabric on Mon Oct 01 00:00:00 2000 |
26 changes: 26 additions & 0 deletions
26
tests/alcatel_aos/show_linkagg_alias/alcatel_aos_show_linkagg_alias_R8.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,26 @@ | ||
--- | ||
parsed_sample: | ||
- admin_state: "ENABLED" | ||
aggregate: "Dynamic" | ||
n_attached_ports: "2" | ||
n_possible_ports: "2" | ||
name: "LINK_LACP_CORE" | ||
number: "2" | ||
operational_state: "UP" | ||
size: "2" | ||
- admin_state: "ENABLED" | ||
aggregate: "Dynamic" | ||
n_attached_ports: "0" | ||
n_possible_ports: "0" | ||
name: "Created by Auto-Fabric on Mon Oct 6 00:00:00 2000" | ||
number: "31" | ||
operational_state: "DOWN" | ||
size: "8" | ||
- admin_state: "ENABLED" | ||
aggregate: "Dynamic" | ||
n_attached_ports: "0" | ||
n_possible_ports: "0" | ||
name: "Created by Auto-Fabric on Mon Oct 01 00:00:00 2000" | ||
number: "32" | ||
operational_state: "DOWN" | ||
size: "8" |