From 8496ae3f29d6f36f6de885700c0eb0d3a91bf200 Mon Sep 17 00:00:00 2001 From: Mihai Prica Date: Thu, 25 Jul 2013 16:57:26 +0300 Subject: python-quantum: Add postinstall for quantum-plugin-openvswitch For the openvswitch plugin to work the br-int bridge has to be created. To create the bridge the ovsdb-server is started using the openvswitch-switch initscript. Signed-off-by: Mihai Prica --- meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'meta-openstack/recipes-devtools/python') diff --git a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb index d058412..3c213a0 100644 --- a/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb +++ b/meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb @@ -76,6 +76,14 @@ pkg_postinst_${SRCNAME} () { sudo -u postgres createdb ovs_quantum } + +pkg_postinst_${SRCNAME}-plugin-openvswitch () { + if [ "x$D" != "x" ]; then + exit 1 + fi + + /etc/init.d/openvswitch-switch start + ovs-vsctl --no-wait -- --may-exist add-br br-int } PACKAGES += " \ -- cgit v1.2.3-54-g00ecf