blob: 70de8fad01046b11653445a47e9e4e699faef2c8 [file] [log] [blame]
ronakae172892014-03-04 15:48:22 -08001# Nuage Neutron Plugin
2# ----------------------
3
4# Save trace setting
Dean Troyere3a91602014-03-28 12:40:56 -05005NU_XTRACE=$(set +o | grep xtrace)
ronakae172892014-03-04 15:48:22 -08006set +o xtrace
7
8function neutron_plugin_create_nova_conf {
9 NOVA_OVS_BRIDGE=${NOVA_OVS_BRIDGE:-"br-int"}
sailajaya12dee42014-11-06 16:14:32 -080010 iniset $NOVA_CONF neutron ovs_bridge $NOVA_OVS_BRIDGE
ronakae172892014-03-04 15:48:22 -080011 NOVA_VIF_DRIVER=${NOVA_VIF_DRIVER:-"nova.virt.libvirt.vif.LibvirtGenericVIFDriver"}
12 LIBVIRT_FIREWALL_DRIVER=nova.virt.firewall.NoopFirewallDriver
13 iniset $NOVA_CONF DEFAULT firewall_driver $LIBVIRT_FIREWALL_DRIVER
14}
15
16function neutron_plugin_install_agent_packages {
17 :
18}
19
20function neutron_plugin_configure_common {
21 Q_PLUGIN_CONF_PATH=etc/neutron/plugins/nuage
22 Q_PLUGIN_CONF_FILENAME=nuage_plugin.ini
ronakae172892014-03-04 15:48:22 -080023 Q_PLUGIN_CLASS="neutron.plugins.nuage.plugin.NuagePlugin"
24 Q_PLUGIN_EXTENSIONS_PATH=neutron/plugins/nuage/extensions
25 #Nuage specific Neutron defaults. Actual value must be set and sourced
26 NUAGE_CNA_SERVERS=${NUAGE_CNA_SERVERS:-'localhost:8443'}
27 NUAGE_CNA_SERVER_AUTH=${NUAGE_CNA_SERVER_AUTH:-'username:password'}
28 NUAGE_CNA_ORGANIZATION=${NUAGE_CNA_ORGANIZATION:-'org'}
29 NUAGE_CNA_SERVER_SSL=${NUAGE_CNA_SERVER_SSL:-'True'}
30 NUAGE_CNA_BASE_URI=${NUAGE_CNA_BASE_URI:-'/'}
31 NUAGE_CNA_AUTH_RESOURCE=${NUAGE_CNA_AUTH_RESOURCE:-'/'}
32 NUAGE_CNA_DEF_NETPART_NAME=${NUAGE_CNA_DEF_NETPART_NAME:-''}
33}
34
35function neutron_plugin_configure_debug_command {
36 :
37}
38
39function neutron_plugin_configure_dhcp_agent {
40 :
41}
42
43function neutron_plugin_configure_l3_agent {
44 :
45}
46
47function neutron_plugin_configure_plugin_agent {
48 :
49}
50
51function neutron_plugin_configure_service {
52 iniset $NEUTRON_CONF DEFAULT api_extensions_path neutron/plugins/nuage/extensions/
53 iniset /$Q_PLUGIN_CONF_FILE restproxy base_uri $NUAGE_CNA_BASE_URI
54 iniset /$Q_PLUGIN_CONF_FILE restproxy serverssl $NUAGE_CNA_SERVER_SSL
55 iniset /$Q_PLUGIN_CONF_FILE restproxy serverauth $NUAGE_CNA_SERVER_AUTH
56 iniset /$Q_PLUGIN_CONF_FILE restproxy organization $NUAGE_CNA_ORGANIZATION
57 iniset /$Q_PLUGIN_CONF_FILE restproxy server $NUAGE_CNA_SERVERS
58 iniset /$Q_PLUGIN_CONF_FILE restproxy auth_resource $NUAGE_CNA_AUTH_RESOURCE
59 iniset /$Q_PLUGIN_CONF_FILE restproxy default_net_partition_name $NUAGE_CNA_DEF_NETPART_NAME
60}
61
62function has_neutron_plugin_security_group {
63 # 1 means False here
64 return 1
65}
66
67# Restore xtrace
Dean Troyere3a91602014-03-28 12:40:56 -050068$NU_XTRACE