mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 14:55:18 +00:00
xenserver: Clear stale configuration keys on boot, but not on later starts
This commit is contained in:
@@ -268,7 +268,8 @@ function start {
|
|||||||
if [ ! -e "$VSWITCHD_CONF" ]; then
|
if [ ! -e "$VSWITCHD_CONF" ]; then
|
||||||
warning "$VSWITCHD_CONF does not exist"
|
warning "$VSWITCHD_CONF does not exist"
|
||||||
action "Creating empty $VSWITCHD_CONF" touch "$VSWITCHD_CONF"
|
action "Creating empty $VSWITCHD_CONF" touch "$VSWITCHD_CONF"
|
||||||
else
|
elif [ ! -e /var/run/vswitch.booted ]; then
|
||||||
|
touch /var/run/vswitch.booted
|
||||||
/usr/bin/ovs-cfg-mod '-vANY:console:emer' -F "$VSWITCHD_CONF" \
|
/usr/bin/ovs-cfg-mod '-vANY:console:emer' -F "$VSWITCHD_CONF" \
|
||||||
'--del-match=bridge.*' \
|
'--del-match=bridge.*' \
|
||||||
'--del-match=port.*' \
|
'--del-match=port.*' \
|
||||||
|
Reference in New Issue
Block a user