-
Notifications
You must be signed in to change notification settings - Fork 743
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Juniper Junos
show vlans
(#1125)
* Added index and textfsm files for Juniper 'show vlans'
- Loading branch information
1 parent
1b9d1a8
commit b96d5e2
Showing
4 changed files
with
80 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
Value ROUTING_INSTANCE (\S+) | ||
Value VLAN_NAME (\S+) | ||
Value TAG (\d+) | ||
Value List INTERFACES (\S+) | ||
|
||
Start | ||
^Routing\sinstance\s+VLAN\sname\s+Tag\s+Interfaces$$ -> VLAN | ||
|
||
VLAN | ||
^\S -> Continue.Record | ||
^${ROUTING_INSTANCE}\s+${VLAN_NAME}\s+${TAG}\s*$$ | ||
^\s+${INTERFACES}$$ | ||
^\s*$$ | ||
^{master:\d+} | ||
^. -> Error |
28 changes: 28 additions & 0 deletions
28
tests/juniper_junos/show_vlans/juniper_junos_show_vlans.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,28 @@ | ||
Routing instance VLAN name Tag Interfaces | ||
default-switch v100-Control 100 | ||
ae0.0* | ||
et-0/0/24.0* | ||
ge-0/0/3.0 | ||
xe-0/0/13.0* | ||
xe-0/0/15.0* | ||
xe-0/0/17.0* | ||
xe-0/0/9.0* | ||
default-switch v1005-HelpDesk 1005 | ||
ae0.0* | ||
et-0/0/24.0* | ||
ge-0/0/7.0 | ||
xe-0/0/13.0* | ||
xe-0/0/15.0* | ||
xe-0/0/17.0* | ||
xe-0/0/9.0* | ||
default-switch v109-TEMP-Project-Data 109 | ||
ae0.0* | ||
et-0/0/24.0* | ||
ge-0/0/7.0 | ||
xe-0/0/13.0* | ||
xe-0/0/15.0* | ||
xe-0/0/17.0* | ||
xe-0/0/22.0 | ||
xe-0/0/9.0* | ||
|
||
{master:0} |
36 changes: 36 additions & 0 deletions
36
tests/juniper_junos/show_vlans/juniper_junos_show_vlans.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,36 @@ | ||
--- | ||
parsed_sample: | ||
- routing_instance: "default-switch" | ||
vlan_name: "v100-Control" | ||
tag: "100" | ||
interfaces: | ||
- "ae0.0*" | ||
- "et-0/0/24.0*" | ||
- "ge-0/0/3.0" | ||
- "xe-0/0/13.0*" | ||
- "xe-0/0/15.0*" | ||
- "xe-0/0/17.0*" | ||
- "xe-0/0/9.0*" | ||
- routing_instance: "default-switch" | ||
vlan_name: "v1005-HelpDesk" | ||
tag: "1005" | ||
interfaces: | ||
- "ae0.0*" | ||
- "et-0/0/24.0*" | ||
- "ge-0/0/7.0" | ||
- "xe-0/0/13.0*" | ||
- "xe-0/0/15.0*" | ||
- "xe-0/0/17.0*" | ||
- "xe-0/0/9.0*" | ||
- routing_instance: "default-switch" | ||
vlan_name: "v109-TEMP-Project-Data" | ||
tag: "109" | ||
interfaces: | ||
- "ae0.0*" | ||
- "et-0/0/24.0*" | ||
- "ge-0/0/7.0" | ||
- "xe-0/0/13.0*" | ||
- "xe-0/0/15.0*" | ||
- "xe-0/0/17.0*" | ||
- "xe-0/0/22.0" | ||
- "xe-0/0/9.0*" |