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

Adding new command on Alcatel AOS: show linkagg alias #1934

Merged
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 16 additions & 0 deletions ntc_templates/templates/alcatel_aos_show_linkagg_alias.textfsm
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Value NUMBER (\d+)
Value AGGREGATE (\S+)
Value SIZE (\d+)
Value ADMIN_STATE (\S+)
Value OPERATIONAL_STATE (\S+)
Value N_ATTACHED_PORTS (\d+)
Value N_POSSIBLE_PORTS (\d+)
Value NAME (\S.+\S)

Start
^\s*Admin\s*Oper\s*Att\/Sel\s*$$
^\s*Number\s+Aggregate\s+Size\s+state\s+state\s+Ports\s+Name\s*$$
^\s*-+
^\s*${NUMBER}\s+${AGGREGATE}\s+${SIZE}\s+${ADMIN_STATE}\s+${OPERATIONAL_STATE}\s+${N_ATTACHED_PORTS}\s+${N_POSSIBLE_PORTS}\s+${NAME}\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 @@ -15,6 +15,7 @@ alcatel_aos_show_lldp_remote-system.textfsm, .*, alcatel_aos, sh[[ow]] lldp r[[e
alcatel_aos_show_interfaces_status.textfsm, .*, alcatel_aos, sh[[ow]] in[[terfaces]] st[[atus]]
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_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_vlan_port.textfsm, .*, alcatel_aos, sh[[ow]] vl[[an]] (p[[ort]]|m[[embers]])
alcatel_aos_show_chassis.textfsm, .*, alcatel_aos, sh[[ow]] ch[[assis]]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

Admin Oper Att/Sel
Number Aggregate Size state state Ports Name
-------+----------+----+------------+-------+---------+--------------
2 Dynamic 2 ENABLED UP 2 2 LINK_LACP_CORE
31 Dynamic 8 ENABLED DOWN 0 0 Created by Auto-Fabric on Mon Oct 6 00:00:00 2000
32 Dynamic 8 ENABLED DOWN 0 0 Created by Auto-Fabric on Mon Oct 01 00:00:00 2000
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
parsed_sample:
- admin_state: "ENABLED"
aggregate: "Dynamic"
n_attached_ports: "2"
n_possible_ports: "2"
name: "LINK_LACP_CORE"
number: "2"
operational_state: "UP"
size: "2"
- admin_state: "ENABLED"
aggregate: "Dynamic"
n_attached_ports: "0"
n_possible_ports: "0"
name: "Created by Auto-Fabric on Mon Oct 6 00:00:00 2000"
number: "31"
operational_state: "DOWN"
size: "8"
- admin_state: "ENABLED"
aggregate: "Dynamic"
n_attached_ports: "0"
n_possible_ports: "0"
name: "Created by Auto-Fabric on Mon Oct 01 00:00:00 2000"
number: "32"
operational_state: "DOWN"
size: "8"