diff options
author | Simon Spöhel <simon@spoehel.ch> | 2021-04-14 07:47:41 +0000 |
---|---|---|
committer | Sakirnth Nagarasa <sakirnth@gmail.com> | 2021-09-01 08:24:51 +0000 |
commit | d0de3076c2675cc0567d93a35f0bb9f216ab3cef (patch) | |
tree | 80da824eddafe41cf21b234e3327304eef974fb4 | |
parent | Using openvswitch instead of linux bridges. (diff) | |
download | compute-tools-d0de3076c2675cc0567d93a35f0bb9f216ab3cef.tar.xz compute-tools-d0de3076c2675cc0567d93a35f0bb9f216ab3cef.zip |
stop openvswitch version.
Diffstat (limited to '')
-rwxr-xr-x | libexec/container/stop | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libexec/container/stop b/libexec/container/stop index 98b2afa..3df5493 100755 --- a/libexec/container/stop +++ b/libexec/container/stop @@ -264,6 +264,12 @@ case "${VERBOSE}" in ;; esac +VETHS="$(awk -Fnetwork-veth-extra= '/^network-veth-extra=/ { print $2 }' ${CONFIG}/${NAME}.conf | awk -F: '{ print $1 }')" +for VETH in ${VETHS} +do + ovs-vsctl --if-exist del-port "${VETH}" +done + machinectl ${MODE} ${NAME} case "${FORCE}" in |