Add OVS configs for bird overlay
This commit is contained in:
25
overlays/bird/ovs-config.sh
Executable file
25
overlays/bird/ovs-config.sh
Executable 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
|
1
overlays/default/ovs-config.sh
Symbolic link
1
overlays/default/ovs-config.sh
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
../bird/ovs-config.sh
|
Reference in New Issue
Block a user