-
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.
New Template - EOS - show vrf (#524)
- Loading branch information
1 parent
d37f6ae
commit f1f1678
Showing
4 changed files
with
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
Value VRF (\S+) | ||
Value RD (\d\S+|<.+>) | ||
|
||
Start | ||
^\s+Vrf\s+RD\s+Protocols\s+State\s+Interfaces -> VRF | ||
^Maximum | ||
^\s*$$ | ||
^. -> Error | ||
|
||
VRF | ||
^\s+${VRF}\s+${RD} -> Record | ||
# Match second line with Status e.x. v6:routing | ||
^\s+\S+:\S+ | ||
# Match multiline interface with last line having a single interface | ||
^\s+\S+\s*$$ | ||
# Match multilin interface with multiple interfaces on the line | ||
^(?:\s+\S+?,){1,5}(?:\s+\S+)?\s*$$ | ||
^\s*-+\s+-+ | ||
^\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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
parsed_sample: | ||
- vrf: "blue" | ||
rd: "10.125.253.15:1" | ||
- vrf: "green" | ||
rd: "<not set>" | ||
- vrf: "yellow" | ||
rd: '10.125.253.15:4' | ||
- vrf: "red" | ||
rd: "10.125.253.15:6" | ||
- vrf: "black" | ||
rd: "999:999" |
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,14 @@ | ||
Vrf RD Protocols State Interfaces | ||
--------- -------- --------------- ----------- ---------- | ||
blue 10.125.253.15:1 ipv4,ipv6 v4:routing, Vlan1006, Vlan2230, Vlan2231, | ||
v6:no routing Vlan2232, Vlan2233, Vlan2234, | ||
Vlan2235, Vlan2236, Vlan2237, | ||
Vlan2238, Vlan2239, Vlan2240 | ||
green <not set> ipv4,ipv6 v4:routing, Vlan1015, Vlan1016, Vlan1017, | ||
v6:no routing Vlan1018, Vlan1019, Vlan1020, | ||
Vlan1021 | ||
yellow 10.125.253.15:4 ipv4,ipv6 v4:routing, Vlan1009 | ||
v6:no routing | ||
red 10.125.253.15:6 ipv4,ipv6 v4:routing, | ||
v6:no routing | ||
black 999:999 ipv4,ipv6 v4:no routing Management1 |