Debian packaging: Remove IP addresses from netdevs within a switch.
authorBen Pfaff <blp@nicira.com>
Wed, 21 Jan 2009 00:24:00 +0000 (16:24 -0800)
committerBen Pfaff <blp@nicira.com>
Wed, 21 Jan 2009 00:44:14 +0000 (16:44 -0800)
debian/openflow-switch.init

index 5e6d595afa875820e2df3a5bc9e70c4278aab988..8ee19cd6d2db6edb86881d4fc2333476a383392e 100755 (executable)
@@ -259,6 +259,10 @@ case "$1" in
             exit 1
         fi
 
+        for netdev in $NETDEVS; do
+            check_op "Removing IP address from $netdev" ifconfig $netdev 0.0.0.0
+        done
+
         must_succeed "Adding datapath" dpctl adddp nl:0
         for netdev in $NETDEVS; do
             must_succeed "Adding $netdev to datapath" dpctl addif nl:0 $netdev