-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from jefvantongerloo/aos8_show_vlan_members
Aos8 show vlan members
- Loading branch information
Showing
6 changed files
with
52 additions
and
0 deletions.
There are no files selected for viewing
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
8 changes: 8 additions & 0 deletions
8
tests/ale_aos8_show_vlan_members/ale_aos8_show_vlan_members.txt
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,8 @@ | ||
vlan port type status | ||
--------+------------+------------+-------------- | ||
1 1/1/1 default inactive | ||
1 1/1/13 default forwarding | ||
1 0/1 default forwarding | ||
3200 1/1/25 unpUntag forwarding | ||
3200 0/1 qtagged forwarding | ||
3201 2/1/1 default inactive |
25 changes: 25 additions & 0 deletions
25
tests/ale_aos8_show_vlan_members/ale_aos8_show_vlan_members.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,25 @@ | ||
--- | ||
- vlan: '1' | ||
port: 1/1/1 | ||
type: default | ||
status: inactive | ||
- vlan: '1' | ||
port: 1/1/13 | ||
type: default | ||
status: forwarding | ||
- vlan: '1' | ||
port: 0/1 | ||
type: default | ||
status: forwarding | ||
- vlan: '3200' | ||
port: 1/1/25 | ||
type: unpUntag | ||
status: forwarding | ||
- vlan: '3200' | ||
port: 0/1 | ||
type: qtagged | ||
status: forwarding | ||
- vlan: '3201' | ||
port: 2/1/1 | ||
type: default | ||
status: inactive |
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 @@ | ||
Value vlan (\d+) | ||
Value port ((\d{1,2}\/)+\d*) | ||
Value type (default|qtagged|dynamic|mirror|mirrored|spb|unpUntag|unpQntag) | ||
Value status (inactive|forwarding|blocking) | ||
|
||
Start | ||
^\s*vlan\s+port\s+type\s+status\s*$$ | ||
^[-+\+]+\s*$$ -> MEMBERS | ||
|
||
MEMBERS | ||
^\s+${vlan}\s+${port}\s+${type}\s+${status}$$ -> Record | ||
^. -> 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