Earlier, 'nl:0' was changed to read 'dp0' in the Debian init script, but
this didn't take into account that this would also change the name of the
"local port" for the datapath from 'of0' to 'dp0'.
The "cleanest" fix would probably be to change all the instances of of0
to dp0, but this would also require changing the names of files in the
file system (e.g. /etc/openflow-switch/of0-cert.pem), so it's easier to
just change the dp0 instances to of0. Thanks to Reid for suggesting this
simpler fix.
Fixes bug #1056.
check_op "Removing IP address from $netdev" ifconfig $netdev 0.0.0.0
done
- must_succeed "Creating datapath" dpctl adddp dp0 $NETDEVS
+ must_succeed "Creating datapath" dpctl adddp of0 $NETDEVS
xx='[0-9abcdefABCDEF][0-9abcdefABCDEF]'
case $DATAPATH_ID in
if test "$MODE" = out-of-band; then
set -- "$@" --out-of-band
fi
- set -- "$@" dp0 "$CONTROLLER"
+ set -- "$@" of0 "$CONTROLLER"
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --pidfile $PIDFILE \
--exec $DAEMON -- "$@"
--exec $DAEMON
echo "$NAME."
- check_op "Deleting datapath" dpctl deldp dp0
+ check_op "Deleting datapath" dpctl deldp of0
check_op "Unloading kernel module" modprobe -r openflow_mod
;;
force-stop)