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}
}
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}
}