-
Notifications
You must be signed in to change notification settings - Fork 190
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix(eos_designs): Remove EVPN related config if VRF 'default' is not …
- Loading branch information
1 parent
e2b0bf0
commit f543977
Showing
9 changed files
with
256 additions
and
6 deletions.
There are no files selected for viewing
88 changes: 88 additions & 0 deletions
88
.../molecule/eos_designs_unit_tests/intended/configs/evpn-vtep-with-default-vrf-not-evpn.cfg
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,88 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
vlan internal order ascending range 1006 1199 | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
hostname evpn-vtep-with-default-vrf-not-evpn | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
vlan 110 | ||
name SVI-110 | ||
! | ||
vrf instance MGMT | ||
! | ||
interface Loopback0 | ||
description EVPN_Overlay_Peering | ||
no shutdown | ||
ip address 192.168.255.109/32 | ||
! | ||
interface Loopback1 | ||
description VTEP_VXLAN_Tunnel_Source | ||
no shutdown | ||
ip address 192.168.254.109/32 | ||
! | ||
interface Vlan110 | ||
description SVI-110 | ||
no shutdown | ||
ip address virtual 10.1.10.1 | ||
! | ||
interface Vxlan1 | ||
description evpn-vtep-with-default-vrf-not-evpn_VTEP | ||
vxlan source-interface Loopback1 | ||
vxlan udp-port 4789 | ||
vxlan vlan 110 vni 10110 | ||
! | ||
ip virtual-router mac-address 00:dc:00:00:00:0a | ||
! | ||
ip routing | ||
no ip routing vrf MGMT | ||
! | ||
ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY | ||
seq 10 permit 192.168.255.0/24 eq 32 | ||
seq 20 permit 192.168.254.0/24 eq 32 | ||
! | ||
route-map RM-CONN-2-BGP permit 10 | ||
match ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY | ||
! | ||
router bfd | ||
multihop interval 300 min-rx 300 multiplier 3 | ||
! | ||
router bgp 101 | ||
router-id 192.168.255.109 | ||
maximum-paths 4 ecmp 4 | ||
neighbor EVPN-OVERLAY-PEERS peer group | ||
neighbor EVPN-OVERLAY-PEERS update-source Loopback0 | ||
neighbor EVPN-OVERLAY-PEERS bfd | ||
neighbor EVPN-OVERLAY-PEERS ebgp-multihop 3 | ||
neighbor EVPN-OVERLAY-PEERS send-community | ||
neighbor EVPN-OVERLAY-PEERS maximum-routes 0 | ||
neighbor IPv4-UNDERLAY-PEERS peer group | ||
neighbor IPv4-UNDERLAY-PEERS send-community | ||
neighbor IPv4-UNDERLAY-PEERS maximum-routes 12000 | ||
redistribute connected route-map RM-CONN-2-BGP | ||
! | ||
vlan 110 | ||
rd 192.168.255.109:10110 | ||
route-target both 10110:10110 | ||
redistribute learned | ||
! | ||
address-family evpn | ||
neighbor EVPN-OVERLAY-PEERS activate | ||
! | ||
address-family ipv4 | ||
no neighbor EVPN-OVERLAY-PEERS activate | ||
neighbor IPv4-UNDERLAY-PEERS activate | ||
! | ||
management api http-commands | ||
protocol https | ||
no shutdown | ||
! | ||
vrf MGMT | ||
no shutdown | ||
! | ||
end |
103 changes: 103 additions & 0 deletions
103
...os_designs_unit_tests/intended/structured_configs/evpn-vtep-with-default-vrf-not-evpn.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,103 @@ | ||
router_bgp: | ||
as: '101' | ||
router_id: 192.168.255.109 | ||
bgp_defaults: | ||
- maximum-paths 4 ecmp 4 | ||
peer_groups: | ||
IPv4-UNDERLAY-PEERS: | ||
type: ipv4 | ||
maximum_routes: 12000 | ||
send_community: all | ||
EVPN-OVERLAY-PEERS: | ||
type: evpn | ||
update_source: Loopback0 | ||
bfd: true | ||
send_community: all | ||
maximum_routes: 0 | ||
ebgp_multihop: 3 | ||
address_family_ipv4: | ||
peer_groups: | ||
IPv4-UNDERLAY-PEERS: | ||
activate: true | ||
EVPN-OVERLAY-PEERS: | ||
activate: false | ||
redistribute_routes: | ||
connected: | ||
route_map: RM-CONN-2-BGP | ||
address_family_evpn: | ||
peer_groups: | ||
EVPN-OVERLAY-PEERS: | ||
activate: true | ||
vlans: | ||
110: | ||
tenant: MY_FABRIC | ||
rd: 192.168.255.109:10110 | ||
route_targets: | ||
both: | ||
- 10110:10110 | ||
redistribute_routes: | ||
- learned | ||
service_routing_protocols_model: multi-agent | ||
ip_routing: true | ||
vlan_internal_order: | ||
allocation: ascending | ||
range: | ||
beginning: 1006 | ||
ending: 1199 | ||
vrfs: | ||
MGMT: | ||
ip_routing: false | ||
management_api_http: | ||
enable_vrfs: | ||
MGMT: {} | ||
enable_https: true | ||
loopback_interfaces: | ||
Loopback0: | ||
description: EVPN_Overlay_Peering | ||
shutdown: false | ||
ip_address: 192.168.255.109/32 | ||
Loopback1: | ||
description: VTEP_VXLAN_Tunnel_Source | ||
shutdown: false | ||
ip_address: 192.168.254.109/32 | ||
prefix_lists: | ||
PL-LOOPBACKS-EVPN-OVERLAY: | ||
sequence_numbers: | ||
10: | ||
action: permit 192.168.255.0/24 eq 32 | ||
20: | ||
action: permit 192.168.254.0/24 eq 32 | ||
route_maps: | ||
RM-CONN-2-BGP: | ||
sequence_numbers: | ||
10: | ||
type: permit | ||
match: | ||
- ip address prefix-list PL-LOOPBACKS-EVPN-OVERLAY | ||
router_bfd: | ||
multihop: | ||
interval: 300 | ||
min_rx: 300 | ||
multiplier: 3 | ||
vlans: | ||
110: | ||
tenant: MY_FABRIC | ||
name: SVI-110 | ||
ip_igmp_snooping: | ||
globally_enabled: true | ||
ip_virtual_router_mac_address: 00:dc:00:00:00:0a | ||
vlan_interfaces: | ||
Vlan110: | ||
tenant: MY_FABRIC | ||
description: SVI-110 | ||
shutdown: false | ||
ip_address_virtual: 10.1.10.1 | ||
vxlan_interface: | ||
Vxlan1: | ||
description: evpn-vtep-with-default-vrf-not-evpn_VTEP | ||
vxlan: | ||
udp_port: 4789 | ||
source_interface: Loopback1 | ||
vlans: | ||
110: | ||
vni: 10110 |
28 changes: 28 additions & 0 deletions
28
...lecule/eos_designs_unit_tests/inventory/host_vars/evpn-vtep-with-default-vrf-not-evpn.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,28 @@ | ||
# Testing an EVPN VTEP where the default VRF is _not_ EVPN enabled. | ||
# Make sure there is no route-map added to the underlay peer group filtering the evpn prefixes. | ||
# Also make sure the VRF is not configured under interface Vxlan 1 | ||
# Minimum config to only test the specific feature. | ||
type: l3leaf | ||
l3leaf: | ||
defaults: | ||
loopback_ipv4_pool: 192.168.255.0/24 | ||
loopback_ipv4_offset: 8 | ||
vtep_loopback_ipv4_pool: 192.168.254.0/24 | ||
virtual_router_mac_address: 00:dc:00:00:00:0a | ||
nodes: | ||
evpn-vtep-with-default-vrf-not-evpn: | ||
id: 101 | ||
bgp_as: 101 | ||
|
||
tenants: | ||
MY_FABRIC: | ||
mac_vrf_vni_base: 10000 | ||
vrfs: | ||
default: | ||
address_families: [] | ||
vrf_id: 1 | ||
svis: | ||
110: | ||
name: SVI-110 | ||
enabled: true | ||
ip_address_virtual: 10.1.10.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
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
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