Allows users to specify which virtual switch Quantum should use
and inform Nova to use. It configures the quantum dhcp agent
interface driver to bind to the correct switch and sets the
vif_type that the BigSwitch/Floodlight plugin will send to Nova.
Change-Id: I077a9ce8ab205e2949e0a438307f7da46a8a247d
Implements: blueprint ivs-support
| ... | ... |
@@ -44,13 +44,23 @@ function quantum_plugin_configure_plugin_agent() {
|
| 44 | 44 |
function quantum_plugin_configure_service() {
|
| 45 | 45 |
iniset /$Q_PLUGIN_CONF_FILE restproxy servers $BS_FL_CONTROLLERS_PORT |
| 46 | 46 |
iniset /$Q_PLUGIN_CONF_FILE restproxy servertimeout $BS_FL_CONTROLLER_TIMEOUT |
| 47 |
+ if [ "$BS_FL_VIF_DRIVER" = "ivs" ] |
|
| 48 |
+ then |
|
| 49 |
+ iniset /$Q_PLUGIN_CONF_FILE nova vif_type ivs |
|
| 50 |
+ fi |
|
| 47 | 51 |
} |
| 48 | 52 |
|
| 49 | 53 |
function quantum_plugin_setup_interface_driver() {
|
| 50 | 54 |
local conf_file=$1 |
| 51 |
- iniset $conf_file DEFAULT interface_driver quantum.agent.linux.interface.OVSInterfaceDriver |
|
| 55 |
+ if [ "$BS_FL_VIF_DRIVER" = "ivs" ] |
|
| 56 |
+ then |
|
| 57 |
+ iniset $conf_file DEFAULT interface_driver quantum.agent.linux.interface.IVSInterfaceDriver |
|
| 58 |
+ else |
|
| 59 |
+ iniset $conf_file DEFAULT interface_driver quantum.agent.linux.interface.OVSInterfaceDriver |
|
| 60 |
+ fi |
|
| 52 | 61 |
} |
| 53 | 62 |
|
| 63 |
+ |
|
| 54 | 64 |
function has_quantum_plugin_security_group() {
|
| 55 | 65 |
# 1 means False here |
| 56 | 66 |
return 1 |