Merge "Delete virtual interface "ovs-system" before load openvswitch module"

This commit is contained in:
Zuul 2019-02-13 18:52:53 +00:00 committed by Gerrit Code Review
commit 3b8d3b6f1b
1 changed files with 4 additions and 0 deletions

View File

@ -88,6 +88,10 @@ function prepare_for_compilation {
# reload_kernel_modules() - reload openvswitch kernel module
function reload_kernel_modules {
local ovs_system=$(sudo ovs-dpctl dump-dps | grep ovs-system)
if [ -n "$ovs_system" ]; then
sudo ovs-dpctl del-dp ovs-system
fi
sudo modprobe -r vport_geneve
sudo modprobe -r openvswitch
load_module openvswitch