devstack/lib/neutron_plugins/oneconvergence
Matt Riedemann 925c256cd4 Remove NOVA_VIF_DRIVER variable
Commit 7561c8ded211d53e8745d1420a73b82bd0fc35cf removed the
libvirt.vif_driver option from Nova in Juno so we should remove the
variable from devstack since it's useless / confusing.

Change-Id: I70a8cb4a3606eb5eabd3c0ef331945e72c80543a
2015-08-25 13:40:25 -07:00

78 lines
2.1 KiB
Bash

#!/bin/bash
#
# Neutron One Convergence plugin
# ------------------------------
# Save trace setting
OC_XTRACE=$(set +o | grep xtrace)
set +o xtrace
source $TOP_DIR/lib/neutron_plugins/ovs_base
Q_L3_ENABLED=true
Q_L3_ROUTER_PER_TENANT=true
Q_USE_NAMESPACE=true
function neutron_plugin_install_agent_packages {
_neutron_ovs_base_install_agent_packages
}
# Configure common parameters
function neutron_plugin_configure_common {
Q_PLUGIN_CONF_PATH=etc/neutron/plugins/oneconvergence
Q_PLUGIN_CONF_FILENAME=nvsdplugin.ini
Q_PLUGIN_CLASS="neutron.plugins.oneconvergence.plugin.OneConvergencePluginV2"
}
# Configure plugin specific information
function neutron_plugin_configure_service {
iniset /$Q_PLUGIN_CONF_FILE nvsd nvsd_ip $NVSD_IP
iniset /$Q_PLUGIN_CONF_FILE nvsd nvsd_port $NVSD_PORT
iniset /$Q_PLUGIN_CONF_FILE nvsd nvsd_user $NVSD_USER
iniset /$Q_PLUGIN_CONF_FILE nvsd nvsd_passwd $NVSD_PASSWD
}
function neutron_plugin_configure_debug_command {
_neutron_ovs_base_configure_debug_command
}
function neutron_plugin_setup_interface_driver {
local conf_file=$1
iniset $conf_file DEFAULT interface_driver neutron.agent.linux.interface.OVSInterfaceDriver
}
function has_neutron_plugin_security_group {
# 1 means False here
return 0
}
function setup_integration_bridge {
_neutron_ovs_base_setup_bridge $OVS_BRIDGE
}
function neutron_plugin_configure_dhcp_agent {
setup_integration_bridge
iniset $Q_DHCP_CONF_FILE DEFAULT dhcp_agent_manager neutron.agent.dhcp_agent.DhcpAgentWithStateReport
}
function neutron_plugin_configure_l3_agent {
_neutron_ovs_base_configure_l3_agent
iniset $Q_L3_CONF_FILE DEFAULT l3_agent_manager neutron.agent.l3_agent.L3NATAgentWithStateReport
}
function neutron_plugin_configure_plugin_agent {
AGENT_BINARY="$NEUTRON_BIN_DIR/neutron-nvsd-agent"
_neutron_ovs_base_configure_firewall_driver
}
function neutron_plugin_create_nova_conf {
if ( is_service_enabled n-cpu && ! ( is_service_enabled q-dhcp )) ; then
setup_integration_bridge
fi
}
# Restore xtrace
$OC_XTRACE