-
Notifications
You must be signed in to change notification settings - Fork 740
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BugFix: Ciena Saos: Added more use cases to vlan_show (#707)
- Loading branch information
1 parent
2614158
commit 3f9b891
Showing
4 changed files
with
82 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
Value VLAN_ID (\d+) | ||
Value VLAN_NAME ([0-9a-zA-Z_#]+) | ||
Value NAME ([0-9a-zA-Z_#]+) | ||
|
||
Start | ||
^\+-+\s*VLAN\s*GLOBAL\s*CONFIGURATION\s*-+\+ | ||
^\+-+ | ||
^\|\sP\w+\s*\|\s*V\w+\s*\| | ||
^\+-+ | ||
^\|\s+In\w+\s*\w+\s*\|\s*\d+\s*\| | ||
^\+-+ | ||
^(?=\s+) | ||
^\+-+ | ||
^\|VL\w+\|\s*\|\s*\d+\| | ||
^\|\s*ID\s*\|\s*\w+\s*\w+\s*\w+\s*\|\d+\| | ||
^\+-+ | ||
^\|\s*${VLAN_ID}\s*\|\s*${VLAN_NAME}\s*\| -> Record | ||
^\+-+ | ||
^(?=\s+) | ||
^\+-+ | ||
^\+-+\s*CROSS\s*CONNECTION\s*TABLE\s*-+\+ | ||
^\|\sOV\w+\s*\|\s*IV\w+\s*\|\s*\w+\-\w+\s*\|\s*\w+\-\w+\s*\| | ||
^\+-+ | ||
^\|\s*No\s*Entry\s*Found\s*\| | ||
^\+-+ | ||
^\+-+\+-+.* | ||
^\|\sParameter\s+|\sValue.* | ||
^.*Inner TPID State.* | ||
^\s+\|\s+\|\s+\| | ||
^\|\s+Field\s+\|\s+Admin\s+\|\s+Oper\s+\| | ||
^\|\s+Inner TPID.* | ||
^\|\s+\|\s+\| | ||
^\|VLAN\|.* | ||
^\|\s+ID\s+\|\s+VLAN Name* -> VLAN_TABLE | ||
^\+-+\s+CROSS\s+CONNECTION\s+TABLE -> CROSS_TABLE | ||
^\s*$$ | ||
^. -> Error | ||
^. -> Error | ||
|
||
VLAN_TABLE | ||
^\|\s*${VLAN_ID}\s*\|\s*${NAME}\s*\| -> Record | ||
^\+-+\+.* | ||
^\+-+\s+CROSS\s+CONNECTION\s+TABLE -> CROSS_TABLE | ||
^\s*$$ | ||
^. -> Error | ||
|
||
CROSS_TABLE | ||
^\|\s+OVID | ||
^\+-+\+.* | ||
^\|\s+No Entry Found | ||
^\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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
--- | ||
parsed_sample: | ||
- vlan_id: '1' | ||
vlan_name: 'Default' | ||
- vlan_id: '2' | ||
vlan_name: 'VLAN#2' | ||
- vlan_id: '4' | ||
vlan_name: 'VLAN#4' | ||
- vlan_id: '5' | ||
vlan_name: 'VLAN#5' | ||
- vlan_id: '7' | ||
vlan_name: 'VLAN#7' | ||
- vlan_id: '8' | ||
vlan_name: 'VLAN#8' | ||
- vlan_id: '1401' | ||
vlan_name: 'Mgmt' | ||
- vlan_id: '3999' | ||
vlan_name: 'RVID_3999' | ||
- vlan_id: '4000' | ||
vlan_name: 'VLAN#4000' | ||
- vlan_id: "1" | ||
name: "Default" | ||
- vlan_id: "2" | ||
name: "VLAN#2" | ||
- vlan_id: "4" | ||
name: "VLAN#4" | ||
- vlan_id: "5" | ||
name: "VLAN#5" | ||
- vlan_id: "7" | ||
name: "VLAN#7" | ||
- vlan_id: "8" | ||
name: "VLAN#8" | ||
- vlan_id: "1401" | ||
name: "Mgmt" | ||
- vlan_id: "3999" | ||
name: "RVID_3999" | ||
- vlan_id: "4000" | ||
name: "VLAN#4000" |
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 @@ | ||
+------------ VLAN GLOBAL CONFIGURATION ------------+ | ||
| Parameter | Value | | ||
+-------------------+---------------+---------------+ | ||
| Inner TPID State | Disabled | | ||
| | | | ||
| Field | Admin | Oper | | ||
+-------------------+---------------+---------------+ | ||
| Inner TPID | 8100 | 8100 | | ||
+-------------------+---------------+---------------+ | ||
|
||
+----+--------------------------------+------------------------+ | ||
|VLAN| | 111111111122222| | ||
| ID | VLAN Name Ports |123456789012345678901234| | ||
+----+--------------------------------+------------------------+ | ||
| 1|Default | x x| | ||
| 127|VLAN#127 |x x| | ||
| 666|Blackhole | xxxxxxxxxx xxxxxxxxxxx | | ||
| 800|Mgmt |x x| | ||
|1001|RVID_1001 |x x| | ||
+----+--------------------------------+------------------------+ | ||
|
||
+----------------------------- CROSS CONNECTION TABLE ------------------------------+ | ||
| OVID | IVID | Port-A | Port-B | | ||
+------+------+----------------------------------+----------------------------------+ | ||
| No Entry Found | | ||
+------+------+----------------------------------+----------------------------------+ |
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 @@ | ||
--- | ||
parsed_sample: | ||
- vlan_id: "1" | ||
name: "Default" | ||
- vlan_id: "127" | ||
name: "VLAN#127" | ||
- vlan_id: "666" | ||
name: "Blackhole" | ||
- vlan_id: "800" | ||
name: "Mgmt" | ||
- vlan_id: "1001" | ||
name: "RVID_1001" |