When openvswitch is configured to set up Q in Q, the network interfaces of the VMs need to be configured as a regular VLAN interface. This can be overridden with some tricks in the context of the VM, for instance setting up a variable composed with at tuple interface, VLAN id, IP address, netmask separated by ;
source /var/run/one-context/context.sh.local
for vlan_info in $(echo $VLAN_IFACES | tr ";" "\n"); do
IFS=, read -r iface vlan addr mask <<< $vlan_info;
ip link add link $iface name $iface.$vlan type vlan id $vlan;
ip addr add $addr/$mask dev $iface.$vlan;
ip link set dev $iface.$vlan up;
done
Anyways, this could be a bit less tricky if it was set as a contextualization option
When openvswitch is configured to set up Q in Q, the network interfaces of the VMs need to be configured as a regular VLAN interface. This can be overridden with some tricks in the context of the VM, for instance setting up a variable composed with at tuple
interface, VLAN id, IP address, netmask
separated by;
And then modifying the init script, with
Anyways, this could be a bit less tricky if it was set as a contextualization option