Define has_neutron_plugin_security_group using override-defaults

DevStack now privides a mechanism to define methods before loading
lib/*. Previously has_neutron_plugin_security_group is used before
an external DevStack plugin is loaded, so we need to define this
method in the master DevStack repo. Now we can define this method
by using the override-defaults mechanism. This allows us to remove
a plugin-specific definition from the master DevStack repo.

Needed-By: Ib0f6e3d9463357d2dd66a2d61b8c722fa1f0bfba
Change-Id: I8b19b8f1b0694a96132f158146848aee7d14e8ff
This commit is contained in:
Akihiro Motoki 2016-01-13 22:48:08 +09:00
parent 8254529a06
commit 3631fc0ca5
5 changed files with 4 additions and 20 deletions

View File

@ -99,11 +99,6 @@ function neutron_plugin_setup_interface_driver {
iniset $conf_file DEFAULT interface_driver neutron.agent.linux.interface.OVSInterfaceDriver
}
function has_neutron_plugin_security_group {
# 0 means True here
return 0
}
function neutron_plugin_check_adv_test_requirements {
is_service_enabled q-dhcp && return 0
}

View File

@ -155,11 +155,6 @@ function neutron_plugin_setup_interface_driver {
iniset $conf_file DEFAULT interface_driver neutron.agent.linux.interface.OVSInterfaceDriver
}
function has_neutron_plugin_security_group {
# 0 means True here
return 0
}
function neutron_plugin_check_adv_test_requirements {
is_service_enabled q-dhcp && return 0
}

View File

@ -115,11 +115,6 @@ function neutron_plugin_setup_interface_driver {
:
}
function has_neutron_plugin_security_group {
# 0 means True here
return 0
}
function neutron_plugin_check_adv_test_requirements {
return 0
}

View File

@ -123,11 +123,6 @@ function neutron_plugin_setup_interface_driver {
iniset $conf_file DEFAULT interface_driver neutron.agent.linux.interface.OVSInterfaceDriver
}
function has_neutron_plugin_security_group {
# 0 means True here
return 0
}
function neutron_plugin_check_adv_test_requirements {
is_service_enabled q-dhcp && return 0
}

View File

@ -0,0 +1,4 @@
function has_neutron_plugin_security_group {
# 0 means True here
return 0
}