Silence warning for failing to stop ovs-testcontroller

This commit is contained in:
Bob Lantz
2019-04-09 12:17:35 -07:00
parent 664ba39383
commit cfb0a6d3f0
+1 -1
View File
@@ -409,7 +409,7 @@ function ovs {
# Switch can run on its own, but
# Mininet should control the controller
# This appears to only be an issue on Ubuntu/Debian
if sudo service $OVSC stop; then
if sudo service $OVSC stop 2>/dev/null; then
echo "Stopped running controller"
fi
if [ -e /etc/init.d/$OVSC ]; then