Try to install openvswitch-testcontroller if needed
This commit is contained in:
+9
-2
@@ -326,8 +326,8 @@ function ovs {
|
|||||||
$install openvswitch-datapath-dkms
|
$install openvswitch-datapath-dkms
|
||||||
fi
|
fi
|
||||||
|
|
||||||
$install openvswitch-switch openvswitch-controller
|
$install openvswitch-switch
|
||||||
|
if $install openvswitch-controller; then
|
||||||
# Switch can run on its own, but
|
# Switch can run on its own, but
|
||||||
# Mininet should control the controller
|
# Mininet should control the controller
|
||||||
# This appears to only be an issue on Ubuntu/Debian
|
# This appears to only be an issue on Ubuntu/Debian
|
||||||
@@ -337,6 +337,13 @@ function ovs {
|
|||||||
if [ -e /etc/init.d/openvswitch-controller ]; then
|
if [ -e /etc/init.d/openvswitch-controller ]; then
|
||||||
sudo update-rc.d openvswitch-controller disable
|
sudo update-rc.d openvswitch-controller disable
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
echo "Attempting to install openvswitch-testcontroller"
|
||||||
|
if ! $install openvswitch-testcontroller; then
|
||||||
|
echo "Failed - giving up"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function remove_ovs {
|
function remove_ovs {
|
||||||
|
|||||||
Reference in New Issue
Block a user