Skip to content

Commit

Permalink
New template for Alcatel AOS: show linkagg port
Browse files Browse the repository at this point in the history
  • Loading branch information
evilmonkey19 committed Dec 12, 2024
1 parent 412e704 commit b25416a
Show file tree
Hide file tree
Showing 4 changed files with 39 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 @@ -16,6 +16,7 @@ alcatel_aos_show_interfaces_status.textfsm, .*, alcatel_aos, sh[[ow]] in[[terfac
alcatel_aos_show_mac-address-table.textfsm, .*, alcatel_aos, sh[[ow]] mac-(a[[ddress-table]]|l[[earning]])
alcatel_aos_show_interfaces_port.textfsm, .*, alcatel_aos, sh[[ow]] in[[terfaces]] p[[ort]]
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,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 b25416a

Please sign in to comment.