From 308209c90e2b0208b0d0f47b4b40063dbe753b1d Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 20 Jan 2009 16:24:00 -0800 Subject: [PATCH] Debian packaging: Remove IP addresses from netdevs within a switch. --- debian/openflow-switch.init | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.30.2