Browse code

Embrane Plugin Support

Implements blueprint embrane-plugin-support

This commit implements Embrane's Neutron plugin installation support
in Devstack.
This is an extension of the openvswitch installation module, which is
used by the main plugin, and enables configuration by localrc

Change-Id: Ia4824f8d2300bcdce170d226145bbce6088f1557

Ivar Lazzaro authored on 2014/02/03 23:28:14
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,40 @@
0
+# Neutron Embrane plugin
1
+# ---------------------------
2
+
3
+# Save trace setting
4
+MY_XTRACE=$(set +o | grep xtrace)
5
+set +o xtrace
6
+
7
+source $TOP_DIR/lib/neutron_plugins/openvswitch
8
+
9
+save_function() {
10
+    local ORIG_FUNC=$(declare -f $1)
11
+    local NEW_FUNC="$2${ORIG_FUNC#$1}"
12
+    eval "$NEW_FUNC"
13
+}
14
+
15
+save_function neutron_plugin_configure_service _neutron_plugin_configure_service
16
+
17
+function neutron_plugin_configure_common() {
18
+    Q_PLUGIN_CONF_PATH=etc/neutron/plugins/embrane
19
+    Q_PLUGIN_CONF_FILENAME=heleos_conf.ini
20
+    Q_DB_NAME="ovs_neutron"
21
+    Q_PLUGIN_CLASS="neutron.plugins.embrane.plugins.embrane_ovs_plugin.EmbraneOvsPlugin"
22
+}
23
+
24
+function neutron_plugin_configure_service() {
25
+    _neutron_plugin_configure_service
26
+    iniset /$Q_PLUGIN_CONF_FILE heleos esm_mgmt $HELEOS_ESM_MGMT
27
+    iniset /$Q_PLUGIN_CONF_FILE heleos admin_username $HELEOS_ADMIN_USERNAME
28
+    iniset /$Q_PLUGIN_CONF_FILE heleos admin_password $HELEOS_ADMIN_PASSWORD
29
+    iniset /$Q_PLUGIN_CONF_FILE heleos router_image $HELEOS_ROUTER_IMAGE
30
+    iniset /$Q_PLUGIN_CONF_FILE heleos mgmt_id $HELEOS_MGMT_ID
31
+    iniset /$Q_PLUGIN_CONF_FILE heleos inband_id $HELEOS_INBAND_ID
32
+    iniset /$Q_PLUGIN_CONF_FILE heleos oob_id $HELEOS_OOB_ID
33
+    iniset /$Q_PLUGIN_CONF_FILE heleos dummy_utif_id $HELEOS_DUMMY_UTIF_ID
34
+    iniset /$Q_PLUGIN_CONF_FILE heleos resource_pool_id $HELEOS_RESOURCE_POOL_ID
35
+    iniset /$Q_PLUGIN_CONF_FILE heleos async_requests $HELEOS_ASYNC_REQUESTS
36
+}
37
+
38
+# Restore xtrace
39
+$MY_XTRACE
0 40
\ No newline at end of file