Add ipolicy attribute to group objects
[ganeti-local] / tools / kvm-ifup.in
index 364d3e6..2ff8ccb 100644 (file)
@@ -1,4 +1,5 @@
 #!/bin/sh
+#
 
 # Copyright (C) 2011 Google Inc.
 #
@@ -34,7 +35,9 @@ fi
 
 ip link set $INTERFACE up
 
-if [ "$MODE" == "bridged" ]; then
+if [ "$MODE" = "bridged" ]; then
+       ip link set $INTERFACE mtu $(</sys/class/net/${BRIDGE}/mtu)
+
        # Connect the interface to the bridge
        brctl addif $BRIDGE $INTERFACE
 else