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