forked from Juniper/contrail-installer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
contrail
47 lines (37 loc) · 1.23 KB
/
contrail
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Juniper/Contrail Neutron Plugin
# -------------------------------
# Save trace settings
MY_XTRACE=$(set +o | grep xtrace)
set +o xtrace
function neutron_plugin_create_nova_conf() {
NOVA_VIF_DRIVER=${NOVA_VIF_DRIVER:-"nova.virt.libvirt.vif.LibvirtGenericVIFDriver"}
}
function neutron_plugin_setup_interface_driver() {
:
}
function neutron_plugin_configure_common() {
Q_PLUGIN_CONF_PATH=${Q_PLUGIN_CONF_PATH:-etc/neutron/plugins/juniper/contrail}
Q_PLUGIN_CONF_FILENAME=${Q_PLUGIN_CONF_FILENAME:-ContrailPlugin.ini}
Q_DB_NAME="contrail_neutron"
Q_PLUGIN_CLASS=${Q_PLUGIN_CLASS:-"neutron_plugin_contrail.plugins.opencontrail.contrail_plugin_core.NeutronPluginContrailCoreV2"}
}
function neutron_plugin_configure_service() {
iniset $NEUTRON_CONF DEFAULT api_extensions_path $DEST/contrail/openstack/neutron_plugin/neutron_plugin_contrail/extensions/
iniset $NEUTRON_CONF quotas quota_driver neutron.quota.ConfDriver
}
function neutron_plugin_configure_debug_command() {
:
}
function is_neutron_ovs_base_plugin() {
# False
return 1
}
function has_neutron_plugin_security_group() {
# True
return 0
}
function neutron_plugin_check_adv_test_requirements() {
return 0
}
# Restore xtrace
$MY_XTRACE