-
Notifications
You must be signed in to change notification settings - Fork 732
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
- Loading branch information
1 parent
412e704
commit b25416a
Showing
4 changed files
with
39 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
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" |