git://git.onelab.eu
/
sliver-openvswitch.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add -t option to ssh, to second sudo
[sliver-openvswitch.git]
/
planetlab
/
scripts
/
del_port
1
#!/bin/bash
2
3
function error
4
{
5
echo $1 >&2
6
exit 1
7
}
8
9
if [ -z "$1" ]; then
10
error "Usage ${0##*/} <port>"
11
fi
12
13
set -e
14
if ovs-vsctl port-to-br "$1" >/dev/null 2>&1; then
15
ovs-vsctl del-port "$1"
16
fi