diff options
| author | Vu Tran <vu.tran@windriver.com> | 2014-05-23 22:10:37 -0400 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@windriver.com> | 2014-05-26 11:30:08 -0400 |
| commit | a1395e1fde90d4e56cabef5e783848d9b1c4262b (patch) | |
| tree | 9a6a78d7413124b40089045e0c2c6b16441ea07b /meta-openstack-compute-test-config/recipes-devtools/python/python-neutron_git.bbappend | |
| parent | 4d8e797075343d7afa635e6f19ae0d3c41aef768 (diff) | |
| download | meta-cloud-services-a1395e1fde90d4e56cabef5e783848d9b1c4262b.tar.gz | |
neutron compute test config
Create startup script on Compute side to create
a flat network that is required by tempest.
Signed-off-by: Vu Tran <vu.tran@windriver.com>
Diffstat (limited to 'meta-openstack-compute-test-config/recipes-devtools/python/python-neutron_git.bbappend')
| -rw-r--r-- | meta-openstack-compute-test-config/recipes-devtools/python/python-neutron_git.bbappend | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/meta-openstack-compute-test-config/recipes-devtools/python/python-neutron_git.bbappend b/meta-openstack-compute-test-config/recipes-devtools/python/python-neutron_git.bbappend new file mode 100644 index 0000000..60e70fc --- /dev/null +++ b/meta-openstack-compute-test-config/recipes-devtools/python/python-neutron_git.bbappend | |||
| @@ -0,0 +1,20 @@ | |||
| 1 | FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:" | ||
| 2 | |||
| 3 | SRC_URI += " file://neutron-test-config.init" | ||
| 4 | |||
| 5 | NEUTRON_CONF_EXT_ETH_IF ?= "eth0" | ||
| 6 | |||
| 7 | do_install_append() { | ||
| 8 | sed -e "s:%NEUTRON_CONF_EXT_ETH_IF%:${NEUTRON_CONF_EXT_ETH_IF}:g" -i ${WORKDIR}/neutron-test-config.init | ||
| 9 | sed -e "s:%COMPUTE_IP%:${COMPUTE_IP}:g" -i ${WORKDIR}/neutron-test-config.init | ||
| 10 | install -m 0755 ${WORKDIR}/neutron-test-config.init ${D}${sysconfdir}/init.d/neutron-test-config | ||
| 11 | } | ||
| 12 | |||
| 13 | PACKAGES += " ${SRCNAME}-test-config" | ||
| 14 | FILES_${SRCNAME}-test-config = "${sysconfdir}/init.d/neutron-test-config" | ||
| 15 | |||
| 16 | RDEPENDS_${SRCNAME}-tests += "${SRCNAME}-test-config" | ||
| 17 | |||
| 18 | INITSCRIPT_PACKAGES += " ${SRCNAME}-test-config" | ||
| 19 | INITSCRIPT_NAME_${SRCNAME}-test-config = "neutron-test-config" | ||
| 20 | INITSCRIPT_PARAMS_${SRCNAME}-test-config = "defaults 95 10" | ||
