summaryrefslogtreecommitdiff
path: root/system/xen
diff options
context:
space:
mode:
Diffstat (limited to 'system/xen')
-rw-r--r--system/xen/openvswitch/openvswitch-clean.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/xen/openvswitch/openvswitch-clean.sh b/system/xen/openvswitch/openvswitch-clean.sh
index 2d02d0ea44..f43aee16b8 100644
--- a/system/xen/openvswitch/openvswitch-clean.sh
+++ b/system/xen/openvswitch/openvswitch-clean.sh
@@ -25,12 +25,16 @@ if [ -f /etc/xen/openvswitch.conf ]; then
ipv4=${ipv4[$name]}
elif [ ! -z ${ipv4[::default]} ]; then
ipv4=${ipv4[::default]}
+ else
+ ipv4=
fi
if [ ! -z ${ipv6[$name]} ]; then
ipv6=${ipv6[$name]}
elif [ ! -z ${ipv6[::default]} ]; then
ipv6=${ipv6[::default]}
+ else
+ ipv6=
fi
# Domain can have more then one vif