Add limited support for Quantum+OVS on XS/XCP.
* Add priliminary support for running the OVS L2 and DHCP agents
in domU:
* Configure Nova to use the correct vif driver and integration
bridge.
* Configure the ovs agent to target the dom0 integration bridge.
* Install a xapi plugin supporting dom0 execution of ovs agent
commands.
* Config doc: http://wiki.openstack.org/QuantumDevstackOvsXcp
* Supports blueprint xenapi-ovs
Change-Id: If5ab07daab1dc3918004eb4bfb6fed6cab0a71fd
diff --git a/tools/xen/install_os_domU.sh b/tools/xen/install_os_domU.sh
index e270e59..b4fbb69 100755
--- a/tools/xen/install_os_domU.sh
+++ b/tools/xen/install_os_domU.sh
@@ -68,6 +68,19 @@
XAPI_PLUGIN_DIR=/usr/lib/xcp/plugins/
fi
cp -pr ./nova/*/plugins/xenserver/xenapi/etc/xapi.d/plugins/* $XAPI_PLUGIN_DIR
+
+# Install the netwrap xapi plugin to support agent control of dom0 networking
+if [[ "$ENABLED_SERVICES" =~ "q-agt" && "$Q_PLUGIN" = "openvswitch" ]]; then
+ if [ -f ./quantum ]; then
+ rm -rf ./quantum
+ fi
+ # get quantum
+ QUANTUM_ZIPBALL_URL=${QUANTUM_ZIPBALL_URL:-$(echo $QUANTUM_REPO | sed "s:\.git$::;s:$:/zipball/$QUANTUM_BRANCH:g")}
+ wget $QUANTUM_ZIPBALL_URL -O quantum-zipball --no-check-certificate
+ unzip -o quantum-zipball -d ./quantum
+ cp -pr ./quantum/*/quantum/plugins/openvswitch/agent/xenapi/etc/xapi.d/plugins/* $XAPI_PLUGIN_DIR
+fi
+
chmod a+x ${XAPI_PLUGIN_DIR}*
mkdir -p /boot/guest