(2.10) Fix net-common script in case of routed mode
authorDimitris Aragiorgis <dimara@grnet.gr>
Fri, 22 Nov 2013 19:59:42 +0000 (21:59 +0200)
committerDimitris Aragiorgis <dimara@grnet.gr>
Tue, 17 Dec 2013 10:46:44 +0000 (12:46 +0200)
setup_route should run in case or routed mode and not
openvswitch.

Signed-off-by: Dimitris Aragiorgis <dimara@grnet.gr>
Signed-off-by: Thomas Thrainer <thomasth@google.com>
Reviewed-by: Thomas Thrainer <thomasth@google.com>

tools/net-common.in

index ee412bd..78cf9ba 100644 (file)
@@ -65,7 +65,7 @@ function setup_ovs {
 }
 
 function setup_route {
-  if [ "$MODE" = "openvswitch" ]; then
+  if [ "$MODE" = "routed" ]; then
     ip link set $INTERFACE up
 
     if [ -z "$IP" ]; then