blob: 2c928bec95b13c302cec29a2ed2a6797406049c6 [file] [log] [blame]
Isaku Yamahata0dd34df2012-12-28 13:15:31 +09001# Quantum Big Switch/FloodLight plugin
2# ------------------------------------
3
4# Save trace setting
Dean Troyer8d55be32013-02-07 17:16:35 -06005MY_XTRACE=$(set +o | grep xtrace)
Isaku Yamahata0dd34df2012-12-28 13:15:31 +09006set +o xtrace
7
8source $TOP_DIR/lib/quantum_plugins/ovs_base
9source $TOP_DIR/lib/quantum_thirdparty/bigswitch_floodlight # for third party service specific configuration values
10
11function quantum_plugin_create_nova_conf() {
12 NOVA_VIF_DRIVER=${NOVA_VIF_DRIVER:-"nova.virt.libvirt.vif.LibvirtHybridOVSBridgeDriver"}
13}
14
15function quantum_plugin_install_agent_packages() {
16 _quantum_ovs_base_install_agent_packages
17}
18
19function 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
28function quantum_plugin_configure_debug_command() {
29 _quantum_ovs_base_configure_debug_command
30}
31
32function quantum_plugin_configure_dhcp_agent() {
33 :
34}
35
36function quantum_plugin_configure_l3_agent() {
37 _quantum_ovs_base_configure_l3_agent
38}
39
40function quantum_plugin_configure_plugin_agent() {
41 :
42}
43
44function 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
49function 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 Troyer8d55be32013-02-07 17:16:35 -060055$MY_XTRACE