Skip to content

Commit

Permalink
New template for Alcatel AOS: show linkagg port (#1933)
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmonkey19 authored Dec 12, 2024
1 parent 27dbcac commit 9d99991
Show file tree
Hide file tree
Showing 6 changed files with 80 additions and 0 deletions.
15 changes: 15 additions & 0 deletions ntc_templates/templates/alcatel_aos_show_linkagg_port.textfsm
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
1 change: 1 addition & 0 deletions ntc_templates/templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ alcatel_aos_show_mac-address-table.textfsm, .*, alcatel_aos, sh[[ow]] mac-(a[[dd
alcatel_aos_show_interfaces_port.textfsm, .*, alcatel_aos, sh[[ow]] in[[terfaces]] p[[ort]]
alcatel_aos_show_linkagg_alias.textfsm, .*, alcatel_aos, sh[[ow]] li[[nkagg]] al[[ias]]
alcatel_aos_show_port-security.textfsm, .*, alcatel_aos, sh[[ow]] port-[[security]]
alcatel_aos_show_linkagg_port.textfsm, .*, alcatel_aos, sh[[ow]] li[[nkagg]] po[[rt]]
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]]
alcatel_aos_show_system.textfsm, .*, alcatel_aos, sh[[ow]] sy[[stem]]
Expand Down
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
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"
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
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"

0 comments on commit 9d99991

Please sign in to comment.