-
Notifications
You must be signed in to change notification settings - Fork 735
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into alcatel_aos_show_linkagg_port
- Loading branch information
Showing
14 changed files
with
145 additions
and
2 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
ntc_templates/templates/alcatel_aos_show_interfaces_alias.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,19 @@ | ||
Value PORT (\S+) | ||
Value ADMIN_STATUS (\S+) | ||
Value LINK_STATUS (\S+) | ||
Value WAIT_TO_RESTORE (\d+) | ||
Value WAIT_TO_SHUTDOWN (\d+) | ||
Value ALIAS (.*) | ||
|
||
Start | ||
^\s*-+\+ -> Table | ||
^\s*Chas\/\s*$$ | ||
^\s*Slot\/\s+Admin\s+Link\s+WTR\s+WTS\s+Alias\s*$$ | ||
^\s*Port\s+Status\s+Status\s+\(sec\)\s+\(msec\)\s*$$ | ||
^\s*$$ | ||
^.*$$ -> Error | ||
|
||
Table | ||
^\s*${PORT}\s+${ADMIN_STATUS}\s+${LINK_STATUS}\s+${WAIT_TO_RESTORE}\s+${WAIT_TO_SHUTDOWN}\s+"${ALIAS}"\s*$$ -> Record | ||
^\s*$$ | ||
^.*$$ -> Error |
16 changes: 16 additions & 0 deletions
16
ntc_templates/templates/alcatel_aos_show_linkagg_alias.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,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 |
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
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
7 changes: 7 additions & 0 deletions
7
tests/alcatel_aos/show_interfaces_alias/alcatel_aos_show_interfaces_alias.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,7 @@ | ||
Chas/ | ||
Slot/ Admin Link WTR WTS Alias | ||
Port Status Status (sec) (msec) | ||
--------+----------+---------+----------+----------+----------------------- | ||
1/1/1 enable up 0 0 "This is an example" | ||
2/1/10 enable down 0 0 "This_is_an_example" | ||
2/1/11 enable down 0 0 "This" |
20 changes: 20 additions & 0 deletions
20
tests/alcatel_aos/show_interfaces_alias/alcatel_aos_show_interfaces_alias.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,20 @@ | ||
--- | ||
parsed_sample: | ||
- admin_status: "enable" | ||
alias: "This is an example" | ||
link_status: "up" | ||
port: "1/1/1" | ||
wait_to_restore: "0" | ||
wait_to_shutdown: "0" | ||
- admin_status: "enable" | ||
alias: "This_is_an_example" | ||
link_status: "down" | ||
port: "2/1/10" | ||
wait_to_restore: "0" | ||
wait_to_shutdown: "0" | ||
- admin_status: "enable" | ||
alias: "This" | ||
link_status: "down" | ||
port: "2/1/11" | ||
wait_to_restore: "0" | ||
wait_to_shutdown: "0" |
7 changes: 7 additions & 0 deletions
7
tests/alcatel_aos/show_linkagg_alias/alcatel_aos_show_linkagg_alias_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,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 |
26 changes: 26 additions & 0 deletions
26
tests/alcatel_aos/show_linkagg_alias/alcatel_aos_show_linkagg_alias_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,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" |
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R8_9.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,12 @@ | ||
Legend: Mac Address: * = address not valid, | ||
Mac Address: & = duplicate static address, | ||
ID = ISID/Vnid/vplsid | ||
|
||
Domain Vlan/SrvcId[:ID] Mac Address Type Operation Interface | ||
------------+----------------------+-------------------+------------------+-------------+------------------------- | ||
VLAN 1 aa:aa:aa:aa:aa:aa dynamic bridging 1/1/1 | ||
VLAN 1 bb:bb:bb:bb:bb:bb dynamic bridging 1/1/1 | ||
VLAN 1 cc:cc:cc:cc:cc:cc dynamic bridging 1/1/10 | ||
VLAN 1 dd:dd:dd:dd:dd:dd dynamic bridging 1/1/1 | ||
|
||
Total number of Valid MAC addresses above = 4 |
34 changes: 34 additions & 0 deletions
34
tests/alcatel_aos/show_mac-address-table/alcatel_aos_show_mac-address-table_R8_9.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,34 @@ | ||
--- | ||
parsed_sample: | ||
- address_not_valid: "" | ||
domain: "VLAN" | ||
interface: "1/1/1" | ||
mac: "aa:aa:aa:aa:aa:aa" | ||
operation: "bridging" | ||
protocol: "" | ||
type: "dynamic" | ||
vlan_id: "1" | ||
- address_not_valid: "" | ||
domain: "VLAN" | ||
interface: "1/1/1" | ||
mac: "bb:bb:bb:bb:bb:bb" | ||
operation: "bridging" | ||
protocol: "" | ||
type: "dynamic" | ||
vlan_id: "1" | ||
- address_not_valid: "" | ||
domain: "VLAN" | ||
interface: "1/1/10" | ||
mac: "cc:cc:cc:cc:cc:cc" | ||
operation: "bridging" | ||
protocol: "" | ||
type: "dynamic" | ||
vlan_id: "1" | ||
- address_not_valid: "" | ||
domain: "VLAN" | ||
interface: "1/1/1" | ||
mac: "dd:dd:dd:dd:dd:dd" | ||
operation: "bridging" | ||
protocol: "" | ||
type: "dynamic" | ||
vlan_id: "1" |