diff options
author | Ulas Kozat <ulas.kozat@huawei.com> | 2015-12-28 16:05:13 -0800 |
---|---|---|
committer | Ulas Kozat <ulas.kozat@huawei.com> | 2015-12-28 16:05:13 -0800 |
commit | c772a1dbc7ace58d099570d41a889adf851c8ba8 (patch) | |
tree | 809aefa0dae407a1d9c12989f7e8f60891700d17 /devstack | |
parent | e671a915d887ae8f7751a54bb07ecb7ed8f2f25b (diff) |
Added networking-sfc from openstack project with merge date Dec 23 2015stable/coloradostable/brahmaputra
Added patch 13 for subject "add missing db migration files"
Change-Id: Id51a160335a14870c1dd816a44baf9b1958b9ac6
Diffstat (limited to 'devstack')
-rw-r--r-- | devstack/README.md | 31 | ||||
-rw-r--r-- | devstack/plugin.sh | 25 | ||||
-rw-r--r-- | devstack/settings | 8 |
3 files changed, 64 insertions, 0 deletions
diff --git a/devstack/README.md b/devstack/README.md new file mode 100644 index 0000000..4093e5c --- /dev/null +++ b/devstack/README.md @@ -0,0 +1,31 @@ +This directory contains the networking-sfc devstack plugin. To +configure the networking sfc, in the [[local|localrc]] section, +you will need to enable the networking-sfc devstack plugin by + editing the [[local|localrc]] section of your local.conf file. + +1) Enable the plugin + +To enable the plugin, add a line of the form: + + enable_plugin networking-sfc <GITURL> [GITREF] + +where + + <GITURL> is the URL of a networking-sfc repository + [GITREF] is an optional git ref (branch/ref/tag). The default is + master. + +For example + + If you have already cloned the networking-sfc repository (which is + useful when testing unmerged changes) + + enable_plugin networking-sfc /opt/stack/networking-sfc + + Or, if you want to pull the networking-sfc repository from Github + and use a particular branch (for example Liberty, here) + + enable_plugin networking-sfc git://git.openstack.org/openstack/networking-sfc stable/liberty + +For more information, see the "Externally Hosted Plugins" section of +http://docs.openstack.org/developer/devstack/plugins.html. diff --git a/devstack/plugin.sh b/devstack/plugin.sh new file mode 100644 index 0000000..04a87bb --- /dev/null +++ b/devstack/plugin.sh @@ -0,0 +1,25 @@ +# function definitions for networking-sfc devstack plugin + +function networking_sfc_install { + setup_develop $NETWORKING_SFC_DIR +} + +function networking_sfc_configure_common { + _neutron_service_plugin_class_add $NEUTRON_FLOWCLASSIFIER_PLUGIN + _neutron_service_plugin_class_add $NEUTRON_SFC_PLUGIN + iniset $NEUTRON_CONF DEFAULT service_plugins $Q_SERVICE_PLUGIN_CLASSES + iniadd $NEUTRON_CONF sfc drivers $NEUTRON_SFC_DRIVERS + _neutron_deploy_rootwrap_filters $NETWORKING_SFC_DIR + neutron-db-manage --config-file $NEUTRON_CONF --config-file /$Q_PLUGIN_CONF_FILE --subproject networking-sfc upgrade head +} + + +if [[ "$1" == "stack" && "$2" == "install" ]]; then + # Perform installation of service source + echo_summary "Installing networking-sfc" + networking_sfc_install + +elif [[ "$1" == "stack" && "$2" == "post-config" ]]; then + echo_summary "Configuring networking-sfc" + networking_sfc_configure_common +fi diff --git a/devstack/settings b/devstack/settings new file mode 100644 index 0000000..6fe3581 --- /dev/null +++ b/devstack/settings @@ -0,0 +1,8 @@ +# settings for networking-sfc devstack plugin + +NETWORKING_SFC_DIR=${NETWORKING_SFC_DIR:-"$DEST/networking-sfc"} + +NEUTRON_FLOWCLASSIFIER_PLUGIN=${NEUTRON_FLOWCLASSIFIER_PLUGIN:="networking_sfc.services.flowclassifier.plugin.FlowClassifierPlugin"} +NEUTRON_SFC_PLUGIN=${NEUTRON_SFC_PLUGIN:-"networking_sfc.services.sfc.plugin.SfcPlugin"} + +NEUTRON_SFC_DRIVERS=${NEUTRON_SFC_DRIVERS:-"ovs"} |