Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alcatel aos show linkagg port #1937

Merged
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 (\S+)
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
@@ -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]]
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,6 @@

Chassis/Slot/Port Aggregate SNMP Id Status Agg Oper Link Prim
-------------------+----------+--------+----------+----+-----+-----+----
1/1/20 Dynamic 1000 ATTACHED 2 UP UP NO
1/1/16 Dynamic 1002 CONFIGURED NONE DOWN DOWN UNK
1/1/21 Dynamic 1001 ATTACHED 2 UP UP YES
jmcgill298 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
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: "NONE"
aggregate_type: "Dynamic"
interface: "1/1/16"
link_status: "DOWN"
operational_status: "DOWN"
primary: "UNK"
snmp_id: "1002"
status: "CONFIGURED"
- aggregate: "2"
aggregate_type: "Dynamic"
interface: "1/1/21"
link_status: "UP"
operational_status: "UP"
primary: "YES"
snmp_id: "1001"
status: "ATTACHED"