-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into sonic-202311
- Loading branch information
Showing
5 changed files
with
139 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
#jinja2: lstrip_blocks: "True", trim_blocks: "True" | ||
frr version 4.0+cl3u9 | ||
frr defaults datacenter | ||
hostname {{ ansible_hostname }} | ||
username cumulus nopassword | ||
! | ||
service integrated-vtysh-config | ||
! | ||
log syslog informational | ||
! | ||
vrf mgmt | ||
ip route 10.0.1.0/24 {{ ansible_host }} nexthop-vrf default | ||
exit-vrf | ||
! | ||
router bgp {{ asn }} | ||
bgp router-id {{ lo }} | ||
neighbor FABRIC peer-group | ||
neighbor FABRIC remote-as external | ||
{% for iface in uplinks %} | ||
neighbor {{ iface.name }} interface peer-group FABRIC | ||
{% endfor %} | ||
! | ||
address-family ipv4 unicast | ||
neighbor FABRIC activate | ||
redistribute connected route-map LOOPBACKS | ||
exit-address-family | ||
! | ||
address-family l2vpn evpn | ||
neighbor FABRIC activate | ||
advertise-all-vni | ||
exit-address-family | ||
! | ||
route-map LOOPBACKS permit 10 | ||
match interface lo | ||
! | ||
{% if metal_partition_mgmt_gateway %} | ||
ip route 0.0.0.0/0 {{ metal_partition_mgmt_gateway }} nexthop-vrf mgmt | ||
! | ||
{% endif %} | ||
line vty | ||
! |
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,51 @@ | ||
# This file describes the network interfaces available on your system | ||
# and how to activate them. For more information, see interfaces(5). | ||
|
||
source /etc/network/interfaces.d/*.intf | ||
|
||
# The loopback network interface | ||
auto lo | ||
iface lo inet loopback | ||
address {{ lo }}/32 | ||
|
||
# The primary network interface | ||
auto eth0 | ||
iface eth0 | ||
address {{ ansible_host }}/24 | ||
gateway {{ metal_partition_mgmt_gateway }} | ||
vrf mgmt | ||
|
||
auto mgmt | ||
iface mgmt | ||
address 127.0.0.1/8 | ||
vrf-table auto | ||
|
||
{% for iface in uplinks %} | ||
auto {{ iface.name }} | ||
iface {{ iface.name }} | ||
mtu {{ mtu.vxlan }} | ||
|
||
{% endfor %} | ||
|
||
auto bridge | ||
iface bridge | ||
bridge-ports vni104000 | ||
bridge-vids 4000 | ||
bridge-vlan-aware yes | ||
|
||
auto vlan4000 | ||
iface vlan4000 | ||
mtu {{ mtu.default }} | ||
address {{ metal_core_cidr }} | ||
vlan-id 4000 | ||
vlan-raw-device bridge | ||
|
||
auto vni104000 | ||
iface vni104000 | ||
mtu {{ mtu.default }} | ||
bridge-access 4000 | ||
bridge-learning off | ||
mstpctl-bpduguard yes | ||
mstpctl-portbpdufilter yes | ||
vxlan-id 104000 | ||
vxlan-local-tunnelip {{ lo }} |