-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feat(eos_designs): Uplink p2p vrfs (#3467)
Co-authored-by: Claus Holbech <[email protected]>
- Loading branch information
1 parent
bc72f69
commit b685e71
Showing
73 changed files
with
2,334 additions
and
518 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
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
19 changes: 19 additions & 0 deletions
19
...ive_unit_tests/inventory/host_vars/invalid-uplink-type-p2p-vrfs-underlay-router-false.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,19 @@ | ||
--- | ||
fabric_name: fabric_p2p_vrfs | ||
|
||
default_node_types: | ||
- node_type: not_underlay_router | ||
match_hostnames: | ||
- ".*underlay.*" | ||
|
||
node_type_keys: | ||
- key: not_underlay_router | ||
type: not_underlay_router | ||
underlay_router: false | ||
uplink_type: p2p-vrfs | ||
|
||
not_underlay_router: | ||
nodes: | ||
- name: invalid-uplink-type-p2p-vrfs-underlay-router-false | ||
|
||
expected_error_message: "Unexpected failure during module execution: 'underlay_router' and 'network_services.l3' must be 'true' for the node_type_key when using 'p2p-vrfs' as 'uplink_type'." |
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
48 changes: 48 additions & 0 deletions
48
...ta/avd/molecule/eos_designs_unit_tests/intended/configs/UPLINK_P2P_VRFS_TESTS_L2LEAF1.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,48 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
vlan internal order ascending range 1006 1199 | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
hostname UPLINK_P2P_VRFS_TESTS_L2LEAF1 | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
vlan 66 | ||
name TEST-L2VLAN-ATTRACTION | ||
! | ||
vrf instance MGMT | ||
! | ||
interface Port-Channel1 | ||
description UPLINK_P2P_VRFS_TESTS_LEAF1_Po51 | ||
no shutdown | ||
switchport | ||
switchport trunk allowed vlan 66 | ||
switchport mode trunk | ||
! | ||
interface Ethernet1 | ||
description UPLINK_P2P_VRFS_TESTS_LEAF1_Ethernet51 | ||
no shutdown | ||
channel-group 1 mode active | ||
! | ||
interface Ethernet2 | ||
description UPLINK_P2P_VRFS_TESTS_LEAF1_Ethernet52 | ||
no shutdown | ||
channel-group 1 mode active | ||
! | ||
interface Ethernet10 | ||
no shutdown | ||
switchport | ||
no ip routing vrf MGMT | ||
! | ||
management api http-commands | ||
protocol https | ||
no shutdown | ||
! | ||
vrf MGMT | ||
no shutdown | ||
! | ||
end |
159 changes: 159 additions & 0 deletions
159
...ista/avd/molecule/eos_designs_unit_tests/intended/configs/UPLINK_P2P_VRFS_TESTS_LEAF1.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,159 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
vlan internal order ascending range 1006 1199 | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
hostname UPLINK_P2P_VRFS_TESTS_LEAF1 | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
vlan 66 | ||
name TEST-L2VLAN-ATTRACTION | ||
! | ||
vrf instance IT | ||
! | ||
vrf instance MGMT | ||
! | ||
vrf instance ONLY-ON-L2LEAF | ||
! | ||
vrf instance PROD | ||
! | ||
interface Port-Channel51 | ||
description UPLINK_P2P_VRFS_TESTS_L2LEAF1_Po1 | ||
no shutdown | ||
switchport | ||
switchport trunk allowed vlan 66 | ||
switchport mode trunk | ||
! | ||
interface Ethernet1 | ||
description P2P_LINK_TO_UPLINK_P2P_VRFS_TESTS_SPINE1_Ethernet1 | ||
no shutdown | ||
mtu 9214 | ||
mac security profile TEST | ||
no switchport | ||
ip address 10.42.42.9/31 | ||
! | ||
interface Ethernet1.42 | ||
description P2P_LINK_TO_UPLINK_P2P_VRFS_TESTS_SPINE1_Ethernet1.42_vrf_PROD | ||
no shutdown | ||
mtu 9214 | ||
encapsulation dot1q vlan 42 | ||
vrf PROD | ||
ip address 10.42.42.9/31 | ||
! | ||
interface Ethernet1.66 | ||
description P2P_LINK_TO_UPLINK_P2P_VRFS_TESTS_SPINE1_Ethernet1.66_vrf_ONLY-ON-L2LEAF | ||
no shutdown | ||
mtu 9214 | ||
encapsulation dot1q vlan 66 | ||
vrf ONLY-ON-L2LEAF | ||
ip address 10.42.42.9/31 | ||
! | ||
interface Ethernet2 | ||
description P2P_LINK_TO_UPLINK_P2P_VRFS_TESTS_SPINE2_Ethernet2 | ||
no shutdown | ||
mtu 9214 | ||
mac security profile TEST | ||
no switchport | ||
ip address 10.42.42.11/31 | ||
! | ||
interface Ethernet2.42 | ||
description P2P_LINK_TO_UPLINK_P2P_VRFS_TESTS_SPINE2_Ethernet2.42_vrf_PROD | ||
no shutdown | ||
mtu 9214 | ||
encapsulation dot1q vlan 42 | ||
vrf PROD | ||
ip address 10.42.42.11/31 | ||
! | ||
interface Ethernet2.100 | ||
description P2P_LINK_TO_UPLINK_P2P_VRFS_TESTS_SPINE2_Ethernet2.100_vrf_IT | ||
no shutdown | ||
mtu 9214 | ||
encapsulation dot1q vlan 100 | ||
vrf IT | ||
ip address 10.42.42.11/31 | ||
! | ||
interface Ethernet51 | ||
description UPLINK_P2P_VRFS_TESTS_L2LEAF1_Ethernet1 | ||
no shutdown | ||
channel-group 51 mode active | ||
! | ||
interface Ethernet52 | ||
description UPLINK_P2P_VRFS_TESTS_L2LEAF1_Ethernet2 | ||
no shutdown | ||
channel-group 51 mode active | ||
! | ||
interface Loopback0 | ||
description Router_ID | ||
no shutdown | ||
ip address 192.168.42.3/32 | ||
! | ||
interface Vlan66 | ||
description TEST-L2VLAN-ATTRACTION | ||
no shutdown | ||
vrf ONLY-ON-L2LEAF | ||
ip address virtual 172.16.0.1/24 | ||
! | ||
ip virtual-router mac-address cafe:cafe:cafe | ||
! | ||
ip routing | ||
ip routing vrf IT | ||
no ip routing vrf MGMT | ||
ip routing vrf ONLY-ON-L2LEAF | ||
ip routing vrf PROD | ||
! | ||
router bgp 65000 | ||
router-id 192.168.42.3 | ||
maximum-paths 4 ecmp 4 | ||
update wait-install | ||
no bgp default ipv4-unicast | ||
neighbor IPv4-UNDERLAY-PEERS peer group | ||
neighbor IPv4-UNDERLAY-PEERS send-community | ||
neighbor IPv4-UNDERLAY-PEERS maximum-routes 12000 | ||
neighbor 10.42.42.8 peer group IPv4-UNDERLAY-PEERS | ||
neighbor 10.42.42.8 remote-as 65000 | ||
neighbor 10.42.42.8 description UPLINK_P2P_VRFS_TESTS_SPINE1_Ethernet1 | ||
neighbor 10.42.42.10 peer group IPv4-UNDERLAY-PEERS | ||
neighbor 10.42.42.10 remote-as 65000 | ||
neighbor 10.42.42.10 description UPLINK_P2P_VRFS_TESTS_SPINE2_Ethernet2 | ||
redistribute connected | ||
! | ||
address-family ipv4 | ||
neighbor IPv4-UNDERLAY-PEERS activate | ||
! | ||
vrf IT | ||
router-id 192.168.42.3 | ||
neighbor 10.42.42.10 remote-as 65000 | ||
neighbor 10.42.42.10 peer group IPv4-UNDERLAY-PEERS | ||
neighbor 10.42.42.10 description UPLINK_P2P_VRFS_TESTS_SPINE2_Ethernet2.100_vrf_IT | ||
redistribute connected | ||
! | ||
vrf ONLY-ON-L2LEAF | ||
router-id 192.168.42.3 | ||
neighbor 10.42.42.8 remote-as 65000 | ||
neighbor 10.42.42.8 peer group IPv4-UNDERLAY-PEERS | ||
neighbor 10.42.42.8 description UPLINK_P2P_VRFS_TESTS_SPINE1_Ethernet1.66_vrf_ONLY-ON-L2LEAF | ||
redistribute connected | ||
! | ||
vrf PROD | ||
router-id 192.168.42.3 | ||
neighbor 10.42.42.8 remote-as 65000 | ||
neighbor 10.42.42.8 peer group IPv4-UNDERLAY-PEERS | ||
neighbor 10.42.42.8 description UPLINK_P2P_VRFS_TESTS_SPINE1_Ethernet1.42_vrf_PROD | ||
neighbor 10.42.42.10 remote-as 65000 | ||
neighbor 10.42.42.10 peer group IPv4-UNDERLAY-PEERS | ||
neighbor 10.42.42.10 description UPLINK_P2P_VRFS_TESTS_SPINE2_Ethernet2.42_vrf_PROD | ||
redistribute connected | ||
! | ||
management api http-commands | ||
protocol https | ||
no shutdown | ||
! | ||
vrf MGMT | ||
no shutdown | ||
! | ||
end |
Oops, something went wrong.