blob: 86f09d2b54dd6dc5a3263e6d18e3dbcb25b51280 [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"}
10 iniset $NOVA_CONF DEFAULT neutron_ovs_bridge $NOVA_OVS_BRIDGE
11 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
23 Q_DB_NAME="nuage_neutron"
24 Q_PLUGIN_CLASS="neutron.plugins.nuage.plugin.NuagePlugin"
25 Q_PLUGIN_EXTENSIONS_PATH=neutron/plugins/nuage/extensions
26 #Nuage specific Neutron defaults. Actual value must be set and sourced
27 NUAGE_CNA_SERVERS=${NUAGE_CNA_SERVERS:-'localhost:8443'}
28 NUAGE_CNA_SERVER_AUTH=${NUAGE_CNA_SERVER_AUTH:-'username:password'}
29 NUAGE_CNA_ORGANIZATION=${NUAGE_CNA_ORGANIZATION:-'org'}
30 NUAGE_CNA_SERVER_SSL=${NUAGE_CNA_SERVER_SSL:-'True'}
31 NUAGE_CNA_BASE_URI=${NUAGE_CNA_BASE_URI:-'/'}
32 NUAGE_CNA_AUTH_RESOURCE=${NUAGE_CNA_AUTH_RESOURCE:-'/'}
33 NUAGE_CNA_DEF_NETPART_NAME=${NUAGE_CNA_DEF_NETPART_NAME:-''}
34}
35
36function neutron_plugin_configure_debug_command {
37 :
38}
39
40function neutron_plugin_configure_dhcp_agent {
41 :
42}
43
44function neutron_plugin_configure_l3_agent {
45 :
46}
47
48function neutron_plugin_configure_plugin_agent {
49 :
50}
51
52function neutron_plugin_configure_service {
53 iniset $NEUTRON_CONF DEFAULT api_extensions_path neutron/plugins/nuage/extensions/
54 iniset /$Q_PLUGIN_CONF_FILE restproxy base_uri $NUAGE_CNA_BASE_URI
55 iniset /$Q_PLUGIN_CONF_FILE restproxy serverssl $NUAGE_CNA_SERVER_SSL
56 iniset /$Q_PLUGIN_CONF_FILE restproxy serverauth $NUAGE_CNA_SERVER_AUTH
57 iniset /$Q_PLUGIN_CONF_FILE restproxy organization $NUAGE_CNA_ORGANIZATION
58 iniset /$Q_PLUGIN_CONF_FILE restproxy server $NUAGE_CNA_SERVERS
59 iniset /$Q_PLUGIN_CONF_FILE restproxy auth_resource $NUAGE_CNA_AUTH_RESOURCE
60 iniset /$Q_PLUGIN_CONF_FILE restproxy default_net_partition_name $NUAGE_CNA_DEF_NETPART_NAME
61}
62
63function has_neutron_plugin_security_group {
64 # 1 means False here
65 return 1
66}
67
68# Restore xtrace
Dean Troyere3a91602014-03-28 12:40:56 -050069$NU_XTRACE