Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat(eos_designs): Structured configuration support for uplink and mlag interfaces #1865

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@
| EOS_DESIGNS_UNIT_TESTS | l3leaf | MH-LEAF2A | 192.168.201.106/24 | vEOS-LAB | Provisioned |
| EOS_DESIGNS_UNIT_TESTS | l3leaf | MLAG-OSPF-L3LEAF1A | 192.168.201.114/24 | vEOS-LAB | Provisioned |
| EOS_DESIGNS_UNIT_TESTS | l3leaf | MLAG-OSPF-L3LEAF1B | 192.168.201.115/24 | vEOS-LAB | Provisioned |
| EOS_DESIGNS_UNIT_TESTS | l2leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A | 192.168.201.201/24 | vEOS-LAB | Provisioned |
| EOS_DESIGNS_UNIT_TESTS | l2leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B | 192.168.201.201/24 | vEOS-LAB | Provisioned |
| EOS_DESIGNS_UNIT_TESTS | l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | 192.168.200.105/24 | vEOS-LAB | Provisioned |
| EOS_DESIGNS_UNIT_TESTS | l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | 192.168.200.107/24 | vEOS-LAB | Provisioned |
| EOS_DESIGNS_UNIT_TESTS | spine | UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1 | 192.168.200.101/24 | vEOS-LAB | Provisioned |

> Provision status is based on Ansible inventory declaration and do not represent real status from CloudVision.

Expand Down Expand Up @@ -154,6 +159,16 @@
| l2leaf | MH-L2LEAF1A | Ethernet1 | l3leaf | MH-LEAF2A | Ethernet2 |
| l3leaf | MLAG-OSPF-L3LEAF1A | Ethernet5 | mlag_peer | MLAG-OSPF-L3LEAF1B | Ethernet5 |
| l3leaf | MLAG-OSPF-L3LEAF1A | Ethernet6 | mlag_peer | MLAG-OSPF-L3LEAF1B | Ethernet6 |
| l2leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A | Ethernet1 | l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | Ethernet5 |
| l2leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A | Ethernet2 | l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | Ethernet5 |
| l2leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A | Ethernet3 | mlag_peer | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B | Ethernet3 |
| l2leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A | Ethernet4 | mlag_peer | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B | Ethernet4 |
| l2leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B | Ethernet1 | l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | Ethernet6 |
| l2leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B | Ethernet2 | l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | Ethernet6 |
| l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | Ethernet1 | spine | UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1 | Ethernet1 |
| l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | Ethernet3 | mlag_peer | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | Ethernet3 |
| l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | Ethernet4 | mlag_peer | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | Ethernet4 |
| l3leaf | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | Ethernet1 | spine | UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1 | Ethernet2 |

# Fabric IP Allocation

Expand All @@ -162,7 +177,7 @@
| Uplink IPv4 Pool | Available Addresses | Assigned addresses | Assigned Address % |
| ---------------- | ------------------- | ------------------ | ------------------ |
| 10.10.101.0/24 | 256 | 8 | 3.13 % |
| 172.31.255.0/24 | 256 | 104 | 40.63 % |
| 172.31.255.0/24 | 256 | 108 | 42.19 % |

## Point-To-Point Links Node Allocation

Expand Down Expand Up @@ -224,13 +239,15 @@
| DC1-SPINE4 | Ethernet5 | 172.31.255.70/31 | DC1-SVC3B | Ethernet4 | 172.31.255.71/31 |
| DC1-SPINE4 | Ethernet16 | 172.31.255.198/31 | DC1_UNDEPLOYED_LEAF1A | Ethernet4 | 172.31.255.199/31 |
| DC1-SPINE4 | Ethernet17 | 172.31.255.214/31 | DC1_UNDEPLOYED_LEAF1B | Ethernet4 | 172.31.255.215/31 |
| UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | Ethernet1 | 172.31.255.1/31 | UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1 | Ethernet1 | 172.31.255.0/31 |
| UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | Ethernet1 | 172.31.255.3/31 | UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1 | Ethernet2 | 172.31.255.2/31 |

## Loopback Interfaces (BGP EVPN Peering)

| Loopback Pool | Available Addresses | Assigned addresses | Assigned Address % |
| ------------- | ------------------- | ------------------ | ------------------ |
| 1.2.3.4/24 | 256 | 2 | 0.79 % |
| 192.168.255.0/24 | 256 | 24 | 9.38 % |
| 192.168.255.0/24 | 256 | 27 | 10.55 % |

## Loopback0 Interfaces Node Allocation

Expand Down Expand Up @@ -262,12 +279,15 @@
| EOS_DESIGNS_UNIT_TESTS | MH-LEAF2A | 192.168.255.35/32 |
| EOS_DESIGNS_UNIT_TESTS | MLAG-OSPF-L3LEAF1A | 192.168.255.36/32 |
| EOS_DESIGNS_UNIT_TESTS | MLAG-OSPF-L3LEAF1B | 192.168.255.37/32 |
| EOS_DESIGNS_UNIT_TESTS | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | 192.168.255.3/32 |
| EOS_DESIGNS_UNIT_TESTS | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | 192.168.255.4/32 |
| EOS_DESIGNS_UNIT_TESTS | UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1 | 192.168.255.1/32 |

## VTEP Loopback VXLAN Tunnel Source Interfaces (VTEPs Only)

| VTEP Loopback Pool | Available Addresses | Assigned addresses | Assigned Address % |
| --------------------- | ------------------- | ------------------ | ------------------ |
| 192.168.254.0/24 | 256 | 20 | 7.82 % |
| 192.168.254.0/24 | 256 | 22 | 8.6 % |

## VTEP Loopback Node allocation

Expand All @@ -293,3 +313,5 @@
| EOS_DESIGNS_UNIT_TESTS | MH-LEAF2A | 192.168.254.35/32 |
| EOS_DESIGNS_UNIT_TESTS | MLAG-OSPF-L3LEAF1A | 192.168.254.36/32 |
| EOS_DESIGNS_UNIT_TESTS | MLAG-OSPF-L3LEAF1B | 192.168.254.36/32 |
| EOS_DESIGNS_UNIT_TESTS | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A | 192.168.254.3/32 |
| EOS_DESIGNS_UNIT_TESTS | UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B | 192.168.254.3/32 |
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,5 @@ spine,DC1-SPINE4,Ethernet4,172.31.255.54/31,l3leaf,DC1-SVC3A,Ethernet4,172.31.25
spine,DC1-SPINE4,Ethernet5,172.31.255.70/31,l3leaf,DC1-SVC3B,Ethernet4,172.31.255.71/31
spine,DC1-SPINE4,Ethernet16,172.31.255.198/31,l3leaf,DC1_UNDEPLOYED_LEAF1A,Ethernet4,172.31.255.199/31
spine,DC1-SPINE4,Ethernet17,172.31.255.214/31,l3leaf,DC1_UNDEPLOYED_LEAF1B,Ethernet4,172.31.255.215/31
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet1,172.31.255.1/31,spine,UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1,Ethernet1,172.31.255.0/31
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet1,172.31.255.3/31,spine,UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1,Ethernet2,172.31.255.2/31
Original file line number Diff line number Diff line change
Expand Up @@ -248,3 +248,23 @@ l3leaf,MLAG-OSPF-L3LEAF1A,Ethernet6,mlag_peer,MLAG-OSPF-L3LEAF1B,Ethernet6,True
l3leaf,MLAG-OSPF-L3LEAF1B,Ethernet1,spine,DC1-SPINE1,Ethernet18,True
l3leaf,MLAG-OSPF-L3LEAF1B,Ethernet5,mlag_peer,MLAG-OSPF-L3LEAF1A,Ethernet5,True
l3leaf,MLAG-OSPF-L3LEAF1B,Ethernet6,mlag_peer,MLAG-OSPF-L3LEAF1A,Ethernet6,True
l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A,Ethernet1,l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet5,True
l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A,Ethernet2,l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet5,True
l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A,Ethernet3,mlag_peer,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B,Ethernet3,True
l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A,Ethernet4,mlag_peer,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B,Ethernet4,True
l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B,Ethernet1,l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet6,True
l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B,Ethernet2,l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet6,True
l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B,Ethernet3,mlag_peer,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A,Ethernet3,True
l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B,Ethernet4,mlag_peer,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A,Ethernet4,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet1,spine,UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1,Ethernet1,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet3,mlag_peer,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet3,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet4,mlag_peer,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet4,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet5,l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A,Ethernet1,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet6,l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B,Ethernet1,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet1,spine,UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1,Ethernet2,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet3,mlag_peer,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet3,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet4,mlag_peer,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet4,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet5,l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A,Ethernet2,True
l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet6,l2leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B,Ethernet2,True
spine,UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1,Ethernet1,l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A,Ethernet1,True
spine,UPLINK-MLAG-STRUCTURED-CONFIG-SPINE1,Ethernet2,l3leaf,UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B,Ethernet1,True
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
!RANCID-CONTENT-TYPE: arista
!
boot secret sha512 a153de6290ff1409257ade45f
!
daemon TerminAttr
exec /usr/bin/TerminAttr -cvaddr=192.168.200.11:9910 -cvauth=key,telarista -cvvrf=MGMT -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A
ip name-server vrf MGMT 8.8.8.8
ip name-server vrf MGMT 192.168.200.5
!
ntp local-interface vrf MGMT Management1
ntp server vrf MGMT 192.168.200.5 prefer
!
snmp-server contact example@example.com
snmp-server location EOS_DESIGNS_UNIT_TESTS UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A
!
spanning-tree mode mstp
no spanning-tree vlan-id 4094
spanning-tree mst 0 priority 16384
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin nopassword
username cvpadmin privilege 15 role network-admin secret sha512 $6$rZKcbIZ7iWGAWTUM$TCgDn1KcavS0s.OV8lacMTUkxTByfzcGlFlYUWroxYuU7M/9bIodhRO7nXGzMweUxvbk8mJmQl8Bh44cRktUj.
username cvpadmin ssh-key ssh-rsa AAAAB3NzaC1yc2EAA82spi2mkxp4FgaLi4CjWkpnL1A/MD7WhrSNgqXToF7QCb9Lidagy9IHafQxfu7LwkFdyQIMu8XNwDZIycuf29wHbDdz1N+YNVK8zwyNAbMOeKMqblsEm2YIorgjzQX1m9+/rJeFBKz77PSgeMp/Rc3txFVuSmFmeTy3aMkU= cvpadmin@hostmachine.local
!
vlan 4094
name MLAG_PEER
trunk group MLAG
!
vrf instance MGMT
!
interface Port-Channel1
description DC1_LEAF1_Po5
no shutdown
switchport
switchport trunk allowed vlan none
switchport trunk native vlan tag
switchport mode trunk
mlag 1
storm-control broadcast level 25
storm-control unknown-unicast level 25
!
interface Port-Channel3
description MLAG_PEER_UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B_Po3
no shutdown
switchport
switchport trunk allowed vlan 2-4094
switchport trunk native vlan tag
switchport mode trunk
switchport trunk group MLAG
storm-control broadcast level 25
storm-control unknown-unicast level 25
!
interface Ethernet1
description UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A_Ethernet5
no shutdown
channel-group 1 mode active
!
interface Ethernet2
description UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B_Ethernet5
no shutdown
channel-group 1 mode active
!
interface Ethernet3
description MLAG_PEER_UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B_Ethernet3
no shutdown
channel-group 3 mode active
!
interface Ethernet4
description MLAG_PEER_UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B_Ethernet4
no shutdown
channel-group 3 mode active
!
interface Management1
description oob_management
no shutdown
vrf MGMT
ip address 192.168.201.201/24
!
interface Vlan4094
description MLAG_PEER
no shutdown
mtu 1500
no autostate
ip address 10.255.252.0/31
!
ip routing
no ip routing vrf MGMT
!
mlag configuration
domain-id UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1
local-interface Vlan4094
peer-address 10.255.252.1
peer-link Port-Channel3
reload-delay mlag 300
reload-delay non-mlag 330
!
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
!
management api http-commands
protocol https
no default-services
no shutdown
!
vrf MGMT
no shutdown
!
end
Original file line number Diff line number Diff line change
@@ -0,0 +1,118 @@
!RANCID-CONTENT-TYPE: arista
!
boot secret sha512 a153de6290ff1409257ade45f
!
daemon TerminAttr
exec /usr/bin/TerminAttr -cvaddr=192.168.200.11:9910 -cvauth=key,telarista -cvvrf=MGMT -smashexcludes=ale,flexCounter,hardware,kni,pulse,strata -ingestexclude=/Sysdb/cell/1/agent,/Sysdb/cell/2/agent -taillogs
no shutdown
!
vlan internal order ascending range 1006 1199
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B
ip name-server vrf MGMT 8.8.8.8
ip name-server vrf MGMT 192.168.200.5
!
ntp local-interface vrf MGMT Management1
ntp server vrf MGMT 192.168.200.5 prefer
!
snmp-server contact example@example.com
snmp-server location EOS_DESIGNS_UNIT_TESTS UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1B
!
spanning-tree mode mstp
no spanning-tree vlan-id 4094
spanning-tree mst 0 priority 16384
!
no enable password
no aaa root
!
username admin privilege 15 role network-admin nopassword
username cvpadmin privilege 15 role network-admin secret sha512 $6$rZKcbIZ7iWGAWTUM$TCgDn1KcavS0s.OV8lacMTUkxTByfzcGlFlYUWroxYuU7M/9bIodhRO7nXGzMweUxvbk8mJmQl8Bh44cRktUj.
username cvpadmin ssh-key ssh-rsa AAAAB3NzaC1yc2EAA82spi2mkxp4FgaLi4CjWkpnL1A/MD7WhrSNgqXToF7QCb9Lidagy9IHafQxfu7LwkFdyQIMu8XNwDZIycuf29wHbDdz1N+YNVK8zwyNAbMOeKMqblsEm2YIorgjzQX1m9+/rJeFBKz77PSgeMp/Rc3txFVuSmFmeTy3aMkU= cvpadmin@hostmachine.local
!
vlan 4094
name MLAG_PEER
trunk group MLAG
!
vrf instance MGMT
!
interface Port-Channel1
description DC1_LEAF1_Po5
no shutdown
switchport
switchport trunk allowed vlan none
switchport trunk native vlan tag
switchport mode trunk
mlag 1
storm-control broadcast level 25
storm-control unknown-unicast level 25
!
interface Port-Channel3
description MLAG_PEER_UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A_Po3
no shutdown
switchport
switchport trunk allowed vlan 2-4094
switchport trunk native vlan tag
switchport mode trunk
switchport trunk group MLAG
storm-control broadcast level 25
storm-control unknown-unicast level 25
!
interface Ethernet1
description UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1A_Ethernet6
no shutdown
channel-group 1 mode active
!
interface Ethernet2
description UPLINK-MLAG-STRUCTURED-CONFIG-L3LEAF1B_Ethernet6
no shutdown
channel-group 1 mode active
!
interface Ethernet3
description MLAG_PEER_UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A_Ethernet3
no shutdown
channel-group 3 mode active
!
interface Ethernet4
description MLAG_PEER_UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1A_Ethernet4
no shutdown
channel-group 3 mode active
!
interface Management1
description oob_management
no shutdown
vrf MGMT
ip address 192.168.201.201/24
!
interface Vlan4094
description MLAG_PEER
no shutdown
mtu 1500
no autostate
ip address 10.255.252.1/31
!
ip routing
no ip routing vrf MGMT
!
mlag configuration
domain-id UPLINK-MLAG-STRUCTURED-CONFIG-L2LEAF1
local-interface Vlan4094
peer-address 10.255.252.0
peer-link Port-Channel3
reload-delay mlag 300
reload-delay non-mlag 330
!
ip route vrf MGMT 0.0.0.0/0 192.168.200.5
!
management api http-commands
protocol https
no default-services
no shutdown
!
vrf MGMT
no shutdown
!
end
Loading