| Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 1 | # PLUMgrid Neutron Plugin | 
 | 2 | # Edgar Magana emagana@plumgrid.com | 
 | 3 | # ------------------------------------ | 
 | 4 |  | 
 | 5 | # Save trace settings | 
 | 6 | MY_XTRACE=$(set +o | grep xtrace) | 
 | 7 | set +o xtrace | 
 | 8 |  | 
 | 9 | #source $TOP_DIR/lib/neutron_plugins/ovs_base | 
 | 10 |  | 
 | 11 | function neutron_plugin_create_nova_conf() { | 
| Aaron Rosen | 4540d00 | 2013-10-24 13:59:33 -0700 | [diff] [blame] | 12 |     : | 
| Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 13 | } | 
 | 14 |  | 
 | 15 | function neutron_plugin_setup_interface_driver() { | 
 | 16 |     : | 
 | 17 | } | 
 | 18 |  | 
 | 19 | function neutron_plugin_configure_common() { | 
 | 20 |     Q_PLUGIN_CONF_PATH=etc/neutron/plugins/plumgrid | 
 | 21 |     Q_PLUGIN_CONF_FILENAME=plumgrid.ini | 
 | 22 |     Q_DB_NAME="plumgrid_neutron" | 
| Edgar Magana | f34424e | 2013-07-29 16:47:13 -0700 | [diff] [blame] | 23 |     Q_PLUGIN_CLASS="neutron.plugins.plumgrid.plumgrid_plugin.plumgrid_plugin.NeutronPluginPLUMgridV2" | 
| Edgar Magana | aeb85c1 | 2013-07-05 11:03:57 -0700 | [diff] [blame] | 24 |     PLUMGRID_DIRECTOR_IP=${PLUMGRID_DIRECTOR_IP:-localhost} | 
 | 25 |     PLUMGRID_DIRECTOR_PORT=${PLUMGRID_DIRECTOR_PORT:-7766} | 
| Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 26 | } | 
 | 27 |  | 
 | 28 | function neutron_plugin_configure_service() { | 
| Edgar Magana | aeb85c1 | 2013-07-05 11:03:57 -0700 | [diff] [blame] | 29 |     iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector director_server $PLUMGRID_DIRECTOR_IP | 
 | 30 |     iniset /$Q_PLUGIN_CONF_FILE PLUMgridDirector director_server_port $PLUMGRID_DIRECTOR_PORT | 
| Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 31 | } | 
 | 32 |  | 
 | 33 | function neutron_plugin_configure_debug_command() { | 
 | 34 |     : | 
 | 35 | } | 
 | 36 |  | 
| Edgar Magana | f34424e | 2013-07-29 16:47:13 -0700 | [diff] [blame] | 37 | function is_neutron_ovs_base_plugin() { | 
 | 38 |     # False | 
 | 39 |     return 1 | 
 | 40 | } | 
 | 41 |  | 
 | 42 | function has_neutron_plugin_security_group() { | 
 | 43 |     # False | 
 | 44 |     return 1 | 
 | 45 | } | 
 | 46 |  | 
| Mark McClain | b05c876 | 2013-07-06 23:29:39 -0400 | [diff] [blame] | 47 | function neutron_plugin_check_adv_test_requirements() { | 
 | 48 |     is_service_enabled q-agt && is_service_enabled q-dhcp && return 0 | 
 | 49 | } | 
 | 50 | # Restore xtrace | 
 | 51 | $MY_XTRACE |