forked from aristanetworks/avd
-
Notifications
You must be signed in to change notification settings - Fork 0
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): Do not KeyError when no path-group is in common wit…
…h pathfinder (aristanetworks#3512)
- Loading branch information
Showing
10 changed files
with
658 additions
and
9 deletions.
There are no files selected for viewing
275 changes: 275 additions & 0 deletions
275
...ecule/eos_designs_unit_tests/intended/configs/cv-pathfinder-edge-no-common-path-group.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,275 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
vlan internal order ascending range 1006 1199 | ||
! | ||
flow tracking hardware | ||
tracker WAN-FLOW-TRACKER | ||
record export on inactive timeout 70000 | ||
record export on interval 5000 | ||
exporter DPI-EXPORTER | ||
collector 127.0.0.1 | ||
local interface Loopback0 | ||
template interval 5000 | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
hostname cv-pathfinder-edge-no-common-path-group | ||
! | ||
router adaptive-virtual-topology | ||
topology role edge | ||
region AVD_Land_East id 43 | ||
zone DEFAULT-ZONE id 1 | ||
site Site512 id 512 | ||
! | ||
policy DEFAULT-AVT-POLICY | ||
! | ||
match application-profile VIDEO | ||
avt profile DEFAULT-AVT-POLICY-VIDEO | ||
! | ||
match application-profile default | ||
avt profile DEFAULT-AVT-POLICY-DEFAULT | ||
! | ||
policy DEFAULT-AVT-POLICY-WITH-CP | ||
! | ||
match application-profile CONTROL-PLANE-APPLICATION-PROFILE | ||
avt profile CONTROL-PLANE-PROFILE | ||
! | ||
match application-profile VIDEO | ||
avt profile DEFAULT-AVT-POLICY-VIDEO | ||
! | ||
match application-profile default | ||
avt profile DEFAULT-AVT-POLICY-DEFAULT | ||
! | ||
policy PROD-AVT-POLICY | ||
! | ||
match application-profile VOICE | ||
avt profile PROD-AVT-POLICY-VOICE | ||
! | ||
match application-profile VIDEO | ||
avt profile PROD-AVT-POLICY-VIDEO | ||
! | ||
match application-profile default | ||
avt profile PROD-AVT-POLICY-DEFAULT | ||
! | ||
profile CONTROL-PLANE-PROFILE | ||
path-selection load-balance LB-CONTROL-PLANE-PROFILE | ||
! | ||
profile DEFAULT-AVT-POLICY-DEFAULT | ||
path-selection load-balance LB-DEFAULT-AVT-POLICY-DEFAULT | ||
! | ||
profile DEFAULT-AVT-POLICY-VIDEO | ||
path-selection load-balance LB-DEFAULT-AVT-POLICY-VIDEO | ||
! | ||
profile PROD-AVT-POLICY-DEFAULT | ||
path-selection load-balance LB-PROD-AVT-POLICY-DEFAULT | ||
! | ||
profile PROD-AVT-POLICY-VIDEO | ||
path-selection load-balance LB-PROD-AVT-POLICY-VIDEO | ||
! | ||
profile PROD-AVT-POLICY-VOICE | ||
path-selection load-balance LB-PROD-AVT-POLICY-VOICE | ||
! | ||
vrf default | ||
avt policy DEFAULT-AVT-POLICY-WITH-CP | ||
avt profile DEFAULT-AVT-POLICY-DEFAULT id 1 | ||
avt profile DEFAULT-AVT-POLICY-VIDEO id 3 | ||
avt profile CONTROL-PLANE-PROFILE id 254 | ||
! | ||
vrf IT | ||
avt policy DEFAULT-AVT-POLICY | ||
avt profile DEFAULT-AVT-POLICY-DEFAULT id 1 | ||
avt profile DEFAULT-AVT-POLICY-VIDEO id 3 | ||
! | ||
vrf PROD | ||
avt policy PROD-AVT-POLICY | ||
avt profile PROD-AVT-POLICY-DEFAULT id 1 | ||
avt profile PROD-AVT-POLICY-VOICE id 2 | ||
avt profile PROD-AVT-POLICY-VIDEO id 4 | ||
! | ||
router path-selection | ||
! | ||
path-group Satellite id 104 | ||
ipsec profile CP-PROFILE | ||
! | ||
local interface Ethernet1 | ||
! | ||
peer dynamic | ||
! | ||
load-balance policy LB-CONTROL-PLANE-PROFILE | ||
path-group Satellite | ||
! | ||
load-balance policy LB-DEFAULT-AVT-POLICY-DEFAULT | ||
! | ||
load-balance policy LB-DEFAULT-AVT-POLICY-VIDEO | ||
! | ||
load-balance policy LB-PROD-AVT-POLICY-DEFAULT | ||
! | ||
load-balance policy LB-PROD-AVT-POLICY-VIDEO | ||
! | ||
load-balance policy LB-PROD-AVT-POLICY-VOICE | ||
! | ||
spanning-tree mode none | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
vrf instance IT | ||
! | ||
vrf instance MGMT | ||
! | ||
vrf instance PROD | ||
! | ||
ip security | ||
! | ||
ike policy DP-IKE-POLICY | ||
local-id 192.168.42.6 | ||
! | ||
ike policy CP-IKE-POLICY | ||
local-id 192.168.42.6 | ||
! | ||
sa policy DP-SA-POLICY | ||
esp encryption aes128 | ||
pfs dh-group 14 | ||
! | ||
sa policy CP-SA-POLICY | ||
esp encryption aes128 | ||
pfs dh-group 14 | ||
! | ||
profile DP-PROFILE | ||
ike-policy DP-IKE-POLICY | ||
sa-policy DP-SA-POLICY | ||
connection start | ||
shared-key 7 ABCDEF1234567890666 | ||
dpd 10 50 clear | ||
mode transport | ||
! | ||
profile CP-PROFILE | ||
ike-policy CP-IKE-POLICY | ||
sa-policy CP-SA-POLICY | ||
connection start | ||
shared-key 7 ABCDEF1234567890 | ||
dpd 10 50 clear | ||
mode transport | ||
! | ||
key controller | ||
profile DP-PROFILE | ||
! | ||
interface Dps1 | ||
description DPS Interface | ||
flow tracker hardware WAN-FLOW-TRACKER | ||
tcp mss ceiling ipv4 1000 | ||
! | ||
interface Ethernet1 | ||
no shutdown | ||
no switchport | ||
flow tracker hardware WAN-FLOW-TRACKER | ||
ip address dhcp | ||
dhcp client accept default-route | ||
! | ||
interface Loopback0 | ||
description Router_ID | ||
no shutdown | ||
ip address 192.168.42.6/32 | ||
! | ||
interface Vxlan1 | ||
description cv-pathfinder-edge-no-common-path-group_VTEP | ||
vxlan source-interface Loopback0 | ||
vxlan udp-port 4789 | ||
vxlan vrf default vni 1 | ||
vxlan vrf IT vni 100 | ||
vxlan vrf PROD vni 42 | ||
! | ||
application traffic recognition | ||
! | ||
application ipv4 CONTROL-PLANE-APPLICATION | ||
destination prefix field-set CONTROL-PLANE-APP-DEST-PREFIXES | ||
! | ||
application ipv4 CUSTOM-APPLICATION-1 | ||
source prefix field-set CUSTOM-SRC-PREFIX-1 | ||
destination prefix field-set CUSTOM-DEST-PREFIX-1 | ||
protocol tcp | ||
! | ||
application ipv4 CUSTOM-APPLICATION-2 | ||
protocol tcp source port field-set TCP-SRC-2 destination port field-set TCP-DEST-2 | ||
! | ||
category VIDEO1 | ||
application CUSTOM-APPLICATION-2 | ||
application microsoft-teams | ||
! | ||
application-profile CONTROL-PLANE-APPLICATION-PROFILE | ||
application CONTROL-PLANE-APPLICATION | ||
! | ||
application-profile VIDEO | ||
application CUSTOM-APPLICATION-1 | ||
application skype | ||
category VIDEO1 | ||
! | ||
application-profile VOICE | ||
application CUSTOM-VOICE-APPLICATION | ||
! | ||
field-set ipv4 prefix CONTROL-PLANE-APP-DEST-PREFIXES | ||
192.168.44.1/32 | ||
! | ||
field-set ipv4 prefix CUSTOM-DEST-PREFIX-1 | ||
6.6.6.0/24 | ||
! | ||
field-set ipv4 prefix CUSTOM-SRC-PREFIX-1 | ||
42.42.42.0/24 | ||
! | ||
field-set l4-port TCP-DEST-2 | ||
666, 777 | ||
! | ||
field-set l4-port TCP-SRC-2 | ||
42 | ||
! | ||
ip routing | ||
ip routing vrf IT | ||
no ip routing vrf MGMT | ||
ip routing vrf PROD | ||
! | ||
router bfd | ||
multihop interval 300 min-rx 300 multiplier 3 | ||
! | ||
router bgp 65000 | ||
router-id 192.168.42.6 | ||
maximum-paths 4 ecmp 4 | ||
update wait-install | ||
no bgp default ipv4-unicast | ||
neighbor WAN-OVERLAY-PEERS peer group | ||
neighbor WAN-OVERLAY-PEERS remote-as 65000 | ||
neighbor WAN-OVERLAY-PEERS update-source Loopback0 | ||
neighbor WAN-OVERLAY-PEERS bfd | ||
neighbor WAN-OVERLAY-PEERS password 7 htm4AZe9mIQOO1uiMuGgYQ== | ||
neighbor WAN-OVERLAY-PEERS send-community | ||
neighbor WAN-OVERLAY-PEERS maximum-routes 0 | ||
neighbor 192.168.44.1 peer group WAN-OVERLAY-PEERS | ||
neighbor 192.168.44.1 description cv-pathfinder-pathfinder | ||
! | ||
address-family evpn | ||
neighbor WAN-OVERLAY-PEERS activate | ||
! | ||
address-family ipv4 | ||
no neighbor WAN-OVERLAY-PEERS activate | ||
! | ||
address-family ipv4 sr-te | ||
neighbor WAN-OVERLAY-PEERS activate | ||
! | ||
address-family link-state | ||
neighbor WAN-OVERLAY-PEERS activate | ||
path-selection | ||
! | ||
address-family path-selection | ||
bgp additional-paths receive | ||
bgp additional-paths send any | ||
neighbor WAN-OVERLAY-PEERS activate | ||
! | ||
management api http-commands | ||
protocol https | ||
no shutdown | ||
! | ||
vrf MGMT | ||
no shutdown | ||
! | ||
end |
Oops, something went wrong.