diff options
| author | Mihai Prica <prica.mihai@gmail.com> | 2013-07-25 16:57:26 +0300 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2013-08-28 18:41:59 -0400 |
| commit | 8496ae3f29d6f36f6de885700c0eb0d3a91bf200 (patch) | |
| tree | 6641e9efba3a1515ab6a452390e4dab4cc611df2 /meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb | |
| parent | 3ed686bc865392474af6da36dc054d3b81656cd5 (diff) | |
| download | meta-cloud-services-8496ae3f29d6f36f6de885700c0eb0d3a91bf200.tar.gz | |
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 <prica.mihai@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb')
| -rw-r--r-- | meta-openstack/recipes-devtools/python/python-quantum_2013.1.2.bb | 8 |
1 files changed, 8 insertions, 0 deletions
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} () { | |||
| 76 | 76 | ||
| 77 | sudo -u postgres createdb ovs_quantum | 77 | sudo -u postgres createdb ovs_quantum |
| 78 | } | 78 | } |
| 79 | |||
| 80 | pkg_postinst_${SRCNAME}-plugin-openvswitch () { | ||
| 81 | if [ "x$D" != "x" ]; then | ||
| 82 | exit 1 | ||
| 83 | fi | ||
| 84 | |||
| 85 | /etc/init.d/openvswitch-switch start | ||
| 86 | ovs-vsctl --no-wait -- --may-exist add-br br-int | ||
| 79 | } | 87 | } |
| 80 | 88 | ||
| 81 | PACKAGES += " \ | 89 | PACKAGES += " \ |
