diff options
author | Simon Spöhel <simon@spoehel.ch> | 2021-01-12 09:37:19 +0000 |
---|---|---|
committer | Sakirnth Nagarasa <sakirnth@gmail.com> | 2021-09-01 08:24:49 +0000 |
commit | 702a11fd5a0296b10f4aa5b4ce3a1a7b93b293a9 (patch) | |
tree | 32716d73cb37e7209079e40d0941ce2f54b08d7d /libexec/container/start | |
parent | Releasing version 20210804. (diff) | |
download | compute-tools-702a11fd5a0296b10f4aa5b4ce3a1a7b93b293a9.tar.xz compute-tools-702a11fd5a0296b10f4aa5b4ce3a1a7b93b293a9.zip |
Using openvswitch instead of linux bridges.
Signed-off-by: Simon Spöhel <simon@spoehel.ch>
Diffstat (limited to 'libexec/container/start')
-rwxr-xr-x | libexec/container/start | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/container/start b/libexec/container/start index f899446..6ec44f4 100755 --- a/libexec/container/start +++ b/libexec/container/start @@ -394,8 +394,8 @@ cat > "/etc/network/interfaces.d/${INTERFACE}" << EOF allow-hotplug ${INTERFACE} iface ${INTERFACE} inet manual pre-up ip link set ${INTERFACE} up - post-up ip link set ${INTERFACE} master ${BRIDGE} - pre-down ip link set ${INTERFACE} nomaster + post-up ovs-vsctl add-port "${BRIDGE}" "${INTERFACE}" + pre-down ovs-vsctl --with-iface del-port "${BRIDGE}" "${INTERFACE}" post-down ip link set ${INTERFACE} down EOF |