Add OVS configs for bird overlay

This commit is contained in:
Pim van Pelt
2022-10-18 22:53:07 +02:00
parent 04c93b513c
commit 65ef59c612
2 changed files with 26 additions and 0 deletions

25
overlays/bird/ovs-config.sh Executable file
View File

@ -0,0 +1,25 @@
#!/bin/sh
#
# OVS configuration for the `bird` overlay
LAB=${LAB:=0}
for node in 0 1 2 3; do
for int in 0 1 2 3; do
ovs-vsctl set port vpp${LAB}-${node}-${int} vlan_mode=native-untagged
done
done
# Uplink is VLAN 10
ovs-vsctl add port vpp${LAB}-0-0 tag 10
# Link vpp${LAB}-0 <-> vpp${LAB}-1 in VLAN 20
ovs-vsctl add port vpp${LAB}-0-1 tag 20
ovs-vsctl add port vpp${LAB}-1-0 tag 20
# Link vpp${LAB}-1 <-> vpp${LAB}-2 in VLAN 21
ovs-vsctl add port vpp${LAB}-1-1 tag 21
ovs-vsctl add port vpp${LAB}-2-0 tag 21
# Link vpp${LAB}-2 <-> vpp${LAB}-3 in VLAN 22
ovs-vsctl add port vpp${LAB}-2-1 tag 22
ovs-vsctl add port vpp${LAB}-3-0 tag 22

View File

@ -0,0 +1 @@
../bird/ovs-config.sh