Skip to content

Commit

Permalink
Downgrade to 202211
Browse files Browse the repository at this point in the history
FRR 8.5.1 doesn't support `match evpn vni` because of FRRouting/frr#14419
  • Loading branch information
robertvolkmann committed Apr 16, 2024
1 parent 4d5e1da commit 545421b
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 23 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ MINI_LAB_VM_IMAGE := $(or $(MINI_LAB_VM_IMAGE),ghcr.io/metal-stack/mini-lab-vms:
MACHINE_OS=ubuntu-22.04

# Check: https://sonic-build.azurewebsites.net/ui/sonic/pipelines
SONIC_REMOTE_IMG := https://sonic-build.azurewebsites.net/api/sonic/artifacts?branchName=202305&platform=vs&target=target%2Fsonic-vs.img.gz
SONIC_REMOTE_IMG := https://sonic-build.azurewebsites.net/api/sonic/artifacts?branchName=202211&platform=vs&target=target%2Fsonic-vs.img.gz

# Machine flavors
ifeq ($(MINI_LAB_FLAVOR),default)
Expand Down
7 changes: 2 additions & 5 deletions files/inet/frr.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ hostname inet
!
log syslog informational
!
vrf vrf104009
vrf vrfInternet
vni 104009
ip route 0.0.0.0/0 172.17.0.1
exit-vrf
Expand Down Expand Up @@ -38,12 +38,9 @@ router bgp 4200000021
neighbor FABRIC allowas-in 2
exit-address-family
!
router bgp 4200000021 vrf vrf104009
router bgp 4200000021 vrf vrfInternet
bgp router-id 10.0.0.21
bgp bestpath as-path multipath-relax
neighbor INTERNET peer-group
neighbor INTERNET remote-as external
neighbor INTERNET timers 1 3
!
address-family ipv4 unicast
redistribute static
Expand Down
30 changes: 15 additions & 15 deletions files/inet/network.sh
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
#!/bin/sh
set -o errexit -o xtrace

ip link add vrf104009 type vrf table 1000
ip link set dev vrf104009 up
ip link set dev eth0 master vrf104009
ip link add vrfInternet type vrf table 1000
ip link set dev vrfInternet up
ip link set dev eth0 master vrfInternet

ip link add name bridge type bridge stp_state 0
ip link set dev bridge type bridge vlan_filtering 1
ip link set dev bridge mtu 9000
ip link set dev bridge up

ip link add link bridge up name vlan104009 type vlan id 1000
ip link set dev vlan104009 mtu 9000
ip link set dev vlan104009 master vrf104009
ip link add link bridge up name vlanInternet type vlan id 1000
ip link set dev vlanInternet mtu 9000
ip link set dev vlanInternet master vrfInternet
bridge vlan del vid 1 dev bridge self
bridge vlan add vid 1000 dev bridge self
ip link set dev vlan104009 up
ip link set dev vlanInternet up

ip link add vni104009 type vxlan id 104009 dstport 4789 local 10.0.0.21 nolearning
ip link set dev vlan104009 mtu 9000
ip link set dev vni104009 master bridge
bridge vlan del vid 1 dev vni104009
bridge vlan del vid 1 untagged pvid dev vni104009
bridge vlan add vid 1000 dev vni104009
bridge vlan add vid 1000 untagged pvid dev vni104009
ip link set up dev vni104009
ip link add vniInternet type vxlan id 104009 dstport 4789 local 10.0.0.21 nolearning
ip link set dev vlanInternet mtu 9000
ip link set dev vniInternet master bridge
bridge vlan del vid 1 dev vniInternet
bridge vlan del vid 1 untagged pvid dev vniInternet
bridge vlan add vid 1000 dev vniInternet
bridge vlan add vid 1000 untagged pvid dev vniInternet
ip link set up dev vniInternet

iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
4 changes: 2 additions & 2 deletions roles/sonic/defaults/main.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
---
branch_name: "202305"
branch_name: "202211"
base_url: "https://sonic-build.azurewebsites.net/api/sonic/artifacts?branchName={{ branch_name }}&platform=vs"
frr_pythontools_url: "{{ base_url }}&target=target%2Fdebs%2Fbullseye%2Ffrr-pythontools_8.5.1-sonic-0_all.deb"
frr_pythontools_url: "{{ base_url }}&target=target%2Fdebs%2Fbullseye%2Ffrr-pythontools_8.2.2-sonic-0_all.deb"

0 comments on commit 545421b

Please sign in to comment.