-
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.
New template for Alcatel AOS:
show linkagg port
(#1933)
- Loading branch information
1 parent
27dbcac
commit 9d99991
Showing
6 changed files
with
80 additions
and
0 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
ntc_templates/templates/alcatel_aos_show_linkagg_port.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,15 @@ | ||
Value INTERFACE (\S+) | ||
Value AGGREGATE_TYPE (\S+) | ||
Value SNMP_ID (\d+) | ||
Value STATUS (\S+) | ||
Value AGGREGATE (\d+) | ||
Value OPERATIONAL_STATUS (\S+) | ||
Value LINK_STATUS (\S+) | ||
Value PRIMARY (\S+) | ||
|
||
Start | ||
^\s*(?:Chassis\/)?Slot\/Port\s*Aggregate\s*SNMP\s*Id\s*Status\s*Agg\s*Oper\s*Link\s*Prim\s*$$ | ||
^\s*-+ | ||
^\s*${INTERFACE}\s*${AGGREGATE_TYPE}\s*${SNMP_ID}\s*${STATUS}\s*${AGGREGATE}\s*${OPERATIONAL_STATUS}\s*${LINK_STATUS}\s*${PRIMARY}\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_port/alcatel_aos_show_linkagg_port_R6.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 @@ | ||
|
||
Slot/Port Aggregate SNMP Id Status Agg Oper Link Prim | ||
---------+---------+-------+----------+----+----+----+---- | ||
1/1 Dynamic 1000 ATTACHED 1 UP UP YES | ||
1/2 Dynamic 1001 ATTACHED 1 UP UP NO | ||
1/3 Dynamic 1002 ATTACHED 2 UP UP YES | ||
1/4 Dynamic 1003 ATTACHED 2 UP UP NO |
34 changes: 34 additions & 0 deletions
34
tests/alcatel_aos/show_linkagg_port/alcatel_aos_show_linkagg_port_R6.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,34 @@ | ||
--- | ||
parsed_sample: | ||
- aggregate: "1" | ||
aggregate_type: "Dynamic" | ||
interface: "1/1" | ||
link_status: "UP" | ||
operational_status: "UP" | ||
primary: "YES" | ||
snmp_id: "1000" | ||
status: "ATTACHED" | ||
- aggregate: "1" | ||
aggregate_type: "Dynamic" | ||
interface: "1/2" | ||
link_status: "UP" | ||
operational_status: "UP" | ||
primary: "NO" | ||
snmp_id: "1001" | ||
status: "ATTACHED" | ||
- aggregate: "2" | ||
aggregate_type: "Dynamic" | ||
interface: "1/3" | ||
link_status: "UP" | ||
operational_status: "UP" | ||
primary: "YES" | ||
snmp_id: "1002" | ||
status: "ATTACHED" | ||
- aggregate: "2" | ||
aggregate_type: "Dynamic" | ||
interface: "1/4" | ||
link_status: "UP" | ||
operational_status: "UP" | ||
primary: "NO" | ||
snmp_id: "1003" | ||
status: "ATTACHED" |
5 changes: 5 additions & 0 deletions
5
tests/alcatel_aos/show_linkagg_port/alcatel_aos_show_linkagg_port_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,5 @@ | ||
|
||
Chassis/Slot/Port Aggregate SNMP Id Status Agg Oper Link Prim | ||
-------------------+----------+--------+----------+----+-----+-----+---- | ||
1/1/20 Dynamic 1000 ATTACHED 2 UP UP NO | ||
1/1/21 Dynamic 1001 ATTACHED 2 UP UP YES |
18 changes: 18 additions & 0 deletions
18
tests/alcatel_aos/show_linkagg_port/alcatel_aos_show_linkagg_port_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,18 @@ | ||
--- | ||
parsed_sample: | ||
- aggregate: "2" | ||
aggregate_type: "Dynamic" | ||
interface: "1/1/20" | ||
link_status: "UP" | ||
operational_status: "UP" | ||
primary: "NO" | ||
snmp_id: "1000" | ||
status: "ATTACHED" | ||
- aggregate: "2" | ||
aggregate_type: "Dynamic" | ||
interface: "1/1/21" | ||
link_status: "UP" | ||
operational_status: "UP" | ||
primary: "YES" | ||
snmp_id: "1001" | ||
status: "ATTACHED" |