From: Ben Pfaff Date: Wed, 21 Jan 2009 00:24:00 +0000 (-0800) Subject: Debian packaging: Remove IP addresses from netdevs within a switch. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=308209c90e2b0208b0d0f47b4b40063dbe753b1d;p=openvswitch Debian packaging: Remove IP addresses from netdevs within a switch. --- diff --git a/debian/openflow-switch.init b/debian/openflow-switch.init index 5e6d595a..8ee19cd6 100755 --- a/debian/openflow-switch.init +++ b/debian/openflow-switch.init @@ -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