Isaku Yamahata | 0dd34df | 2012-12-28 13:15:31 +0900 | [diff] [blame] | 1 | # Quantum Big Switch/FloodLight plugin |
| 2 | # ------------------------------------ |
| 3 | |
| 4 | # Save trace setting |
Dean Troyer | 8d55be3 | 2013-02-07 17:16:35 -0600 | [diff] [blame] | 5 | MY_XTRACE=$(set +o | grep xtrace) |
Isaku Yamahata | 0dd34df | 2012-12-28 13:15:31 +0900 | [diff] [blame] | 6 | set +o xtrace |
| 7 | |
| 8 | source $TOP_DIR/lib/quantum_plugins/ovs_base |
| 9 | source $TOP_DIR/lib/quantum_thirdparty/bigswitch_floodlight # for third party service specific configuration values |
| 10 | |
| 11 | function quantum_plugin_create_nova_conf() { |
| 12 | NOVA_VIF_DRIVER=${NOVA_VIF_DRIVER:-"nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver"} |
| 13 | } |
| 14 | |
| 15 | function quantum_plugin_install_agent_packages() { |
| 16 | _quantum_ovs_base_install_agent_packages |
| 17 | } |
| 18 | |
| 19 | function quantum_plugin_configure_common() { |
| 20 | Q_PLUGIN_CONF_PATH=etc/quantum/plugins/bigswitch |
| 21 | Q_PLUGIN_CONF_FILENAME=restproxy.ini |
| 22 | Q_DB_NAME="restproxy_quantum" |
| 23 | Q_PLUGIN_CLASS="quantum.plugins.bigswitch.plugin.QuantumRestProxyV2" |
| 24 | BS_FL_CONTROLLERS_PORT=${BS_FL_CONTROLLERS_PORT:-localhost:80} |
| 25 | BS_FL_CONTROLLER_TIMEOUT=${BS_FL_CONTROLLER_TIMEOUT:-10} |
| 26 | } |
| 27 | |
| 28 | function quantum_plugin_configure_debug_command() { |
| 29 | _quantum_ovs_base_configure_debug_command |
| 30 | } |
| 31 | |
| 32 | function quantum_plugin_configure_dhcp_agent() { |
| 33 | : |
| 34 | } |
| 35 | |
| 36 | function quantum_plugin_configure_l3_agent() { |
| 37 | _quantum_ovs_base_configure_l3_agent |
| 38 | } |
| 39 | |
| 40 | function quantum_plugin_configure_plugin_agent() { |
| 41 | : |
| 42 | } |
| 43 | |
| 44 | function quantum_plugin_configure_service() { |
| 45 | iniset /$Q_PLUGIN_CONF_FILE RESTPROXY servers $BS_FL_CONTROLLERS_PORT |
| 46 | iniset /$Q_PLUGIN_CONF_FILE RESTPROXY servertimeout $BS_FL_CONTROLLER_TIMEOUT |
| 47 | } |
| 48 | |
| 49 | function quantum_plugin_setup_interface_driver() { |
| 50 | local conf_file=$1 |
| 51 | iniset $conf_file DEFAULT interface_driver quantum.agent.linux.interface.OVSInterfaceDriver |
| 52 | } |
| 53 | |
| 54 | # Restore xtrace |
Dean Troyer | 8d55be3 | 2013-02-07 17:16:35 -0600 | [diff] [blame] | 55 | $MY_XTRACE |