forked from networktocode/ntc-templates
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Alcatel aos show vlan port members (networktocode#1899)
- Loading branch information
1 parent
ffb6ef4
commit 9140fef
Showing
6 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
ntc_templates/templates/alcatel_aos_show_vlan_port.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,11 @@ | ||
Value VLAN_ID (\d+) | ||
Value PORT ((\d+\/?)+) | ||
Value TYPE (\S+) | ||
Value STATUS (\S+) | ||
|
||
Start | ||
^\s*vlan\s*port\s*type\s*status\s*$$ | ||
^\s*[-+]+\s*$$ | ||
^\s*${VLAN_ID}\s*${PORT}\s*${TYPE}\s*${STATUS}\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
4 changes: 4 additions & 0 deletions
4
tests/alcatel_aos/show_vlan_port/alcatel_aos_show_vlan_port_1.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,4 @@ | ||
vlan port type status | ||
--------+------------+------------+-------------- | ||
1 1/1/23 default inactive | ||
1 1/1/25 qtagged forwarding |
10 changes: 10 additions & 0 deletions
10
tests/alcatel_aos/show_vlan_port/alcatel_aos_show_vlan_port_1.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,10 @@ | ||
--- | ||
parsed_sample: | ||
- port: "1/1/23" | ||
status: "inactive" | ||
type: "default" | ||
vlan_id: "1" | ||
- port: "1/1/25" | ||
status: "forwarding" | ||
type: "qtagged" | ||
vlan_id: "1" |
4 changes: 4 additions & 0 deletions
4
tests/alcatel_aos/show_vlan_port/alcatel_aos_show_vlan_port_2.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,4 @@ | ||
vlan port type status | ||
------+-------+---------+------------- | ||
1 1/25 default inactive | ||
1 1/26 qtagged forwarding |
10 changes: 10 additions & 0 deletions
10
tests/alcatel_aos/show_vlan_port/alcatel_aos_show_vlan_port_2.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,10 @@ | ||
--- | ||
parsed_sample: | ||
- port: "1/25" | ||
status: "inactive" | ||
type: "default" | ||
vlan_id: "1" | ||
- port: "1/26" | ||
status: "forwarding" | ||
type: "qtagged" | ||
vlan_id: "1" |