-
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): Sflow configuration at fabric level (#2775)
Co-authored-by: Claus Holbech <[email protected]> Co-authored-by: Carl Buchmann <[email protected]>
- Loading branch information
1 parent
36608bc
commit 659de7e
Showing
40 changed files
with
3,309 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
...ions/arista/avd/molecule/eos_designs_unit_tests/intended/configs/sflow-tests-l2-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,53 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
vlan internal order ascending range 1006 1199 | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
hostname sflow-tests-l2-leaf1 | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
vlan 11 | ||
name VLAN11 | ||
! | ||
vrf instance MGMT | ||
! | ||
interface Port-Channel1 | ||
description SFLOW-TESTS-LEAF-MLAG_Po16 | ||
no shutdown | ||
switchport | ||
switchport trunk allowed vlan 11 | ||
switchport mode trunk | ||
sflow enable | ||
! | ||
interface Ethernet1 | ||
description SFLOW-TESTS-LEAF3_Ethernet16 | ||
no shutdown | ||
channel-group 1 mode active | ||
! | ||
interface Ethernet2 | ||
description SFLOW-TESTS-LEAF4_Ethernet16 | ||
no shutdown | ||
channel-group 1 mode active | ||
! | ||
interface Management1 | ||
description oob_management | ||
no shutdown | ||
vrf MGMT | ||
ip address 192.168.0.201/24 | ||
no ip routing vrf MGMT | ||
! | ||
ip route vrf MGMT 0.0.0.0/0 192.168.0.1 | ||
! | ||
management api http-commands | ||
protocol https | ||
no shutdown | ||
! | ||
vrf MGMT | ||
no shutdown | ||
! | ||
end |
53 changes: 53 additions & 0 deletions
53
...ions/arista/avd/molecule/eos_designs_unit_tests/intended/configs/sflow-tests-l2-leaf2.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,53 @@ | ||
!RANCID-CONTENT-TYPE: arista | ||
! | ||
vlan internal order ascending range 1006 1199 | ||
! | ||
transceiver qsfp default-mode 4x10G | ||
! | ||
service routing protocols model multi-agent | ||
! | ||
hostname sflow-tests-l2-leaf2 | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
vlan 11 | ||
name VLAN11 | ||
! | ||
vrf instance MGMT | ||
! | ||
interface Port-Channel1 | ||
description SFLOW-TESTS-LEAF-MLAG_Po17 | ||
no shutdown | ||
switchport | ||
switchport trunk allowed vlan 11 | ||
switchport mode trunk | ||
sflow enable | ||
! | ||
interface Ethernet1 | ||
description SFLOW-TESTS-LEAF3_Ethernet17 | ||
no shutdown | ||
channel-group 1 mode active | ||
! | ||
interface Ethernet2 | ||
description SFLOW-TESTS-LEAF4_Ethernet17 | ||
no shutdown | ||
channel-group 1 mode active | ||
! | ||
interface Management1 | ||
description oob_management | ||
no shutdown | ||
vrf MGMT | ||
ip address 192.168.0.202/24 | ||
no ip routing vrf MGMT | ||
! | ||
ip route vrf MGMT 0.0.0.0/0 192.168.0.1 | ||
! | ||
management api http-commands | ||
protocol https | ||
no shutdown | ||
! | ||
vrf MGMT | ||
no shutdown | ||
! | ||
end |
159 changes: 159 additions & 0 deletions
159
...ections/arista/avd/molecule/eos_designs_unit_tests/intended/configs/sflow-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 sflow-tests-leaf1 | ||
! | ||
spanning-tree mode mstp | ||
spanning-tree mst 0 priority 4096 | ||
! | ||
no enable password | ||
no aaa root | ||
! | ||
vlan 11 | ||
name VLAN11 | ||
! | ||
vrf instance MGMT | ||
! | ||
vrf instance VRF1 | ||
! | ||
interface Ethernet1 | ||
description P2P_LINK_TO_SFLOW-TESTS-SPINE1_Ethernet1 | ||
no shutdown | ||
mtu 9214 | ||
no switchport | ||
ip address 10.254.2.1/31 | ||
sflow enable | ||
! | ||
interface Ethernet2 | ||
description P2P_LINK_TO_SFLOW-TESTS-SPINE1_Ethernet2 | ||
no shutdown | ||
mtu 9214 | ||
no switchport | ||
ip address 10.254.2.3/31 | ||
sflow enable | ||
! | ||
interface Ethernet10 | ||
description single-interface-true_eth1 | ||
no shutdown | ||
switchport access vlan 11 | ||
switchport mode access | ||
switchport | ||
sflow enable | ||
! | ||
interface Ethernet12 | ||
description single-interface-false_eth11 | ||
no shutdown | ||
switchport access vlan 11 | ||
switchport mode access | ||
switchport | ||
no sflow enable | ||
! | ||
interface Ethernet14 | ||
description single-interface-no-definition_eth12 | ||
no shutdown | ||
switchport access vlan 11 | ||
switchport mode access | ||
switchport | ||
sflow enable | ||
! | ||
interface Loopback0 | ||
description EVPN_Overlay_Peering | ||
no shutdown | ||
ip address 10.254.1.1/32 | ||
! | ||
interface Loopback1 | ||
description VTEP_VXLAN_Tunnel_Source | ||
no shutdown | ||
ip address 10.254.11.1/32 | ||
! | ||
interface Management1 | ||
description oob_management | ||
no shutdown | ||
vrf MGMT | ||
ip address 192.168.0.101/24 | ||
! | ||
interface Vlan11 | ||
description VLAN11 | ||
no shutdown | ||
vrf VRF1 | ||
ip address 172.16.11.1/24 | ||
! | ||
interface Vxlan1 | ||
description sflow-tests-leaf1_VTEP | ||
vxlan source-interface Loopback1 | ||
vxlan udp-port 4789 | ||
vxlan vlan 11 vni 10011 | ||
vxlan vrf VRF1 vni 1 | ||
! | ||
ip routing | ||
no ip routing vrf MGMT | ||
ip routing vrf VRF1 | ||
! | ||
ip prefix-list PL-LOOPBACKS-EVPN-OVERLAY | ||
seq 10 permit 10.254.1.0/27 eq 32 | ||
seq 20 permit 10.254.11.0/27 eq 32 | ||
! | ||
ip route vrf MGMT 0.0.0.0/0 192.168.0.1 | ||
! | ||
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 65101 | ||
router-id 10.254.1.1 | ||
maximum-paths 4 ecmp 4 | ||
no bgp default ipv4-unicast | ||
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 | ||
neighbor 10.254.2.0 peer group IPv4-UNDERLAY-PEERS | ||
neighbor 10.254.2.0 remote-as 65200 | ||
neighbor 10.254.2.0 description sflow-tests-spine1_Ethernet1 | ||
neighbor 10.254.2.2 peer group IPv4-UNDERLAY-PEERS | ||
neighbor 10.254.2.2 remote-as 65200 | ||
neighbor 10.254.2.2 description sflow-tests-spine1_Ethernet2 | ||
neighbor 10.255.0.1 peer group EVPN-OVERLAY-PEERS | ||
neighbor 10.255.0.1 remote-as 65200 | ||
neighbor 10.255.0.1 description sflow-tests-spine1 | ||
redistribute connected route-map RM-CONN-2-BGP | ||
! | ||
vlan 11 | ||
rd 10.254.1.1:10011 | ||
route-target both 10011:10011 | ||
redistribute learned | ||
! | ||
address-family evpn | ||
neighbor EVPN-OVERLAY-PEERS activate | ||
! | ||
address-family ipv4 | ||
no neighbor EVPN-OVERLAY-PEERS activate | ||
neighbor IPv4-UNDERLAY-PEERS activate | ||
! | ||
vrf VRF1 | ||
rd 10.254.1.1:1 | ||
route-target import evpn 1:1 | ||
route-target export evpn 1:1 | ||
router-id 10.254.1.1 | ||
redistribute connected | ||
! | ||
management api http-commands | ||
protocol https | ||
no shutdown | ||
! | ||
vrf MGMT | ||
no shutdown | ||
! | ||
end |
Oops, something went wrong.