Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Arista EOS show vrf to create a simple table of VRF names and RDs #449

Merged
merged 1 commit into from
Oct 30, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions templates/arista_eos_show_vrf.template
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Value VRF (\S+)
Value RD (<not set>|\S+)

Start
^\s+Vrf\s+RD\s+Protocols\s+State\s+Interfaces -> Start_record

Start_record
^\s+${VRF}\s+${RD} -> Record
1 change: 1 addition & 0 deletions templates/index
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ arista_eos_show_clock.template, .*, arista_eos, sh[[ow]] clo[[ck]]
arista_eos_dir_flash.template, .*, arista_eos, dir fl[[ash:]]
arista_eos_show_mlag.template, .*, arista_eos, sh[[ow]] ml[[ag]]
arista_eos_show_vlan.template, .*, arista_eos, sh[[ow]] vl[[an]]
arista_eos_show_vrf.template, .*, arista_eos, sh[[ow]] vrf

aruba_os_show_ipv6_interface_brief.template, .*, aruba_os, sh[[ow]] ipv6 in[[terface]] b[[rief]]
aruba_os_show_ip_interface_brief.template, .*, aruba_os, sh[[ow]] ip in[[terface]] b[[rief]]
Expand Down
16 changes: 16 additions & 0 deletions tests/arista_eos/show_vrf/arista_eos_show_vrf.parsed
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
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
6 changes: 6 additions & 0 deletions tests/arista_eos/show_vrf/arista_eos_show_vrf.raw
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Vrf RD Protocols State Interfaces
blue 10.125.253.15:1 ipv4,ipv6 v4:routing, Vlan1006, Vlan2230, Vlan2231,
green <not set> ipv4,ipv6 v4:routing, Vlan1015
yellow 10.125.253.15:4 ipv4,ipv6 v4:routing, Vlan1009
red 10.125.253.15:6 ipv4,ipv6 v4:routing, Vlan1011
black 999:999 ipv4,ipv6 v4:no routing, Management1