From: Michael Tremer Date: Sat, 9 Mar 2013 16:11:29 +0000 (+0100) Subject: switch: Fix attaching/detaching ports. X-Git-Tag: 006~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0152cbb095c4f7d2662045eb4b230ba26544035d;p=network.git switch: Fix attaching/detaching ports. --- diff --git a/functions.switch b/functions.switch index 69894ff4..e417efdd 100644 --- a/functions.switch +++ b/functions.switch @@ -77,7 +77,7 @@ function switch_attach_port() { assert isset port log DEBUG "Attaching port '${port}' to switch '${device}'" - ovs-vsctl -- --may-exist ${device} ${port} + ovs-vsctl -- --may-exist add-port "${device}" "${port}" return ${EXIT_OK} } @@ -90,7 +90,7 @@ function switch_detach_port() { assert isset port log DEBUG "Detaching port '${port}' from switch '${device}'" - ovs-vsctl -- --if-exists ${device} ${port} + ovs-vsctl -- --if-exists del-port "${device}" "${port}" return ${EXIT_OK} }