-
Notifications
You must be signed in to change notification settings - Fork 229
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for Arista vlan to vni mapping new syntax (#8197)
- fixes #8164 - update arista grammer to parse new vlan to vni syntax
- Loading branch information
Showing
9 changed files
with
240 additions
and
1 deletion.
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
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
12 changes: 12 additions & 0 deletions
12
.../src/test/resources/org/batfish/grammar/arista/testconfigs/arista_vxlan_new_syntax_1_to_1
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 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
! boot system flash:/eos-4.24.2fx-evpn.swi | ||
hostname arista_vxlan_new_syntax | ||
! | ||
interface Vxlan1 | ||
vxlan udp-port 4789 | ||
! New Syntax | ||
! 1:1 | ||
vxlan vlan 1,2 vni 1,2 | ||
! | ||
no ip routing |
12 changes: 12 additions & 0 deletions
12
...src/test/resources/org/batfish/grammar/arista/testconfigs/arista_vxlan_new_syntax_invalid
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 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
! boot system flash:/eos-4.24.2fx-evpn.swi | ||
hostname arista_vxlan_new_syntax | ||
! | ||
interface Vxlan1 | ||
vxlan udp-port 4789 | ||
! New Syntax | ||
! invalid size not equal (test absence of key `12`) | ||
vxlan vlan 12 vni 13,14 | ||
! | ||
no ip routing |
12 changes: 12 additions & 0 deletions
12
.../resources/org/batfish/grammar/arista/testconfigs/arista_vxlan_new_syntax_matching_ranges
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 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
! boot system flash:/eos-4.24.2fx-evpn.swi | ||
hostname arista_vxlan_new_syntax | ||
! | ||
interface Vxlan1 | ||
vxlan udp-port 4789 | ||
! New Syntax | ||
! matching ranges | ||
vxlan vlan 3-5 vni 3-5 | ||
! | ||
no ip routing |
12 changes: 12 additions & 0 deletions
12
...st/resources/org/batfish/grammar/arista/testconfigs/arista_vxlan_new_syntax_range_on_left
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 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
! boot system flash:/eos-4.24.2fx-evpn.swi | ||
hostname arista_vxlan_new_syntax | ||
! | ||
interface Vxlan1 | ||
vxlan udp-port 4789 | ||
! New Syntax | ||
! range on left | ||
vxlan vlan 9-11 vni 11,10,9 | ||
! | ||
no ip routing |
12 changes: 12 additions & 0 deletions
12
...t/resources/org/batfish/grammar/arista/testconfigs/arista_vxlan_new_syntax_range_on_right
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 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
! boot system flash:/eos-4.24.2fx-evpn.swi | ||
hostname arista_vxlan_new_syntax | ||
! | ||
interface Vxlan1 | ||
vxlan udp-port 4789 | ||
! New Syntax | ||
! range on right | ||
vxlan vlan 8,7,6 vni 6-8 | ||
! | ||
no ip routing |