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