git://git.onelab.eu
/
sliver-openvswitch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Avoid implementation-defined strerror behaviour
[sliver-openvswitch.git]
/
rhel
/
etc_sysconfig_network-scripts_ifdown-ovs
diff --git
a/rhel/etc_sysconfig_network-scripts_ifdown-ovs
b/rhel/etc_sysconfig_network-scripts_ifdown-ovs
index
3b5252d
..
19047d8
100755
(executable)
--- a/
rhel/etc_sysconfig_network-scripts_ifdown-ovs
+++ b/
rhel/etc_sysconfig_network-scripts_ifdown-ovs
@@
-22,6
+22,7
@@
cd /etc/sysconfig/network-scripts
[ -f ../network ] && . ../network
CONFIG=${1}
[ -f ../network ] && . ../network
CONFIG=${1}
+TIMEOUT=10
source_config
source_config
@@
-37,12
+38,12
@@
case "$TYPE" in
OVSBridge)
${OTHERSCRIPT} ${CONFIG} $2
retval=$?
OVSBridge)
${OTHERSCRIPT} ${CONFIG} $2
retval=$?
- ovs-vsctl -- --if-exists del-br "$DEVICE"
+ ovs-vsctl -
t ${TIMEOUT} -
- --if-exists del-br "$DEVICE"
;;
OVSPort|OVSIntPort|OVSBond)
${OTHERSCRIPT} ${CONFIG} $2
retval=$?
;;
OVSPort|OVSIntPort|OVSBond)
${OTHERSCRIPT} ${CONFIG} $2
retval=$?
- ovs-vsctl -- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
+ ovs-vsctl -
t ${TIMEOUT} -
- --if-exists del-port "$OVS_BRIDGE" "$DEVICE"
;;
*)
echo $"Invalid OVS interface type $TYPE"
;;
*)
echo $"Invalid OVS interface type $TYPE"