projects
/
openvswitch
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
json: Better handle JSON objects with duplicate names.
[openvswitch]
/
xenserver
/
openvswitch-xen.spec
diff --git
a/xenserver/openvswitch-xen.spec
b/xenserver/openvswitch-xen.spec
index 67dd26d29f8c36bc39aed70948731ab6bebe8be8..d2433f986f5d9560a0cb4ce171ab4ca727f916c9 100644
(file)
--- a/
xenserver/openvswitch-xen.spec
+++ b/
xenserver/openvswitch-xen.spec
@@
-172,8
+172,15
@@
if test "$PRODUCT_VERSION" = "5.5.0"; then
fi
rm -f $XSS
ln -s $RNU $XSS
fi
rm -f $XSS
ln -s $RNU $XSS
+
+ # If /etc/xensource/network.conf doesn't exist (it was added in 5.6.0),
+ # then interface-reconfigure will be unhappy when we run it below.
+ if test ! -e /etc/xensource/network.conf; then
+ echo bridge > /etc/xensource/network.conf
+ fi
fi
fi
+
if test ! -e /var/xapi/network.dbcache; then
if test "$1" = 1; then
printf "Creating xapi database cache... "
if test ! -e /var/xapi/network.dbcache; then
if test "$1" = 1; then
printf "Creating xapi database cache... "
@@
-338,8
+345,13
@@
if [ "$1" = "0" ]; then # $1 = 1 for upgrade
rm -f /etc/openvswitch/vswitchd.cacert
rm -f /var/xapi/network.dbcache
rm -f /etc/openvswitch/vswitchd.cacert
rm -f /var/xapi/network.dbcache
- # Configure system to use bridge
- echo bridge > /etc/xensource/network.conf
+ if test "$PRODUCT_VERSION" != "5.5.0"; then
+ # Configure system to use bridge
+ echo bridge > /etc/xensource/network.conf
+ else
+ # Get rid of network.conf entirely, to make the system pristine.
+ rm -f /etc/xensource/network.conf
+ fi
printf "\nYou MUST reboot the server now to complete the change to\n"
printf "standard Xen networking. Attempts to modify networking on the\n"
printf "\nYou MUST reboot the server now to complete the change to\n"
printf "standard Xen networking. Attempts to modify networking on the\n"