From 0152cbb095c4f7d2662045eb4b230ba26544035d Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 9 Mar 2013 17:11:29 +0100 Subject: [PATCH] switch: Fix attaching/detaching ports. --- functions.switch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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} } -- 2.39.2