summaryrefslogtreecommitdiff
path: root/xenserver/openvswitch-xen.spec
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-04-11 18:29:02 -0700
committerEthan Jackson <ethan@nicira.com>2011-04-12 13:18:42 -0700
commit0b18063d0ad94dafb8d74de9d6ad04da894228d2 (patch)
tree0104b750435ba9f306a1c89b4234cb61205c12c2 /xenserver/openvswitch-xen.spec
parentdcd1dbc5b3088b1729238be752e75e89cbe1fa27 (diff)
downloadopenvswitch-0b18063d0ad94dafb8d74de9d6ad04da894228d2.tar.gz
xenserver: Warn when upgrading OVS on a bridged system.
Diffstat (limited to 'xenserver/openvswitch-xen.spec')
-rw-r--r--xenserver/openvswitch-xen.spec13
1 files changed, 11 insertions, 2 deletions
diff --git a/xenserver/openvswitch-xen.spec b/xenserver/openvswitch-xen.spec
index 7a2e1761d..4d03991d0 100644
--- a/xenserver/openvswitch-xen.spec
+++ b/xenserver/openvswitch-xen.spec
@@ -233,8 +233,17 @@ if [ "$1" = "1" ]; then # $1 = 2 for upgrade
printf "or any hosted VM will fail until after the reboot and could\n"
printf "leave the server in an state requiring manual recovery.\n\n"
else
- printf "\nTo use the new Open vSwitch install, you should reboot the\n"
- printf "server now. Failure to do so may result in incorrect operation."
+
+ mode=$(cat /etc/xensource/network.conf)
+ if [ "$mode" != "vswitch" ] && [ "$mode" != "openvswitch" ]; then
+ printf "\nThe server is not configured to run Open vSwitch. To run in\n"
+ printf "vswitch mode, you must run the following command:\n\n"
+ printf "\txe-switch-network-backend vswitch"
+ else
+ printf "\nTo use the new Open vSwitch install, you should reboot the\n"
+ printf "server now. Failure to do so may result in incorrect operation."
+ fi
+
printf "\n\n"
fi