From e0b214a7d43c6e2c22fc5f182ec24b3192b64fde Mon Sep 17 00:00:00 2001 From: "steve.ruan" Date: Thu, 19 May 2016 22:55:32 -0700 Subject: [PATCH] Add "neutron-bgp-dragent" to setup.cfg neutron-bgp-dragent will be added to "/usr/local/bin" by install script automatically when it's defined in entry_points section Change-Id: I7592de868602db8f0c09756246a044cbe73d4800 Implements: blueprint bgp-spinout Partial-Bug: #1560003 --- devstack/lib/dr | 2 +- devstack/plugin.sh | 2 +- setup.cfg | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/devstack/lib/dr b/devstack/lib/dr index cb04b367..93633f89 100644 --- a/devstack/lib/dr +++ b/devstack/lib/dr @@ -35,7 +35,7 @@ function configure_dr_agent_bgp_driver { #This API will be called for phase "install" -function dr_configure { +function dr_install { setup_develop $NEUTRON_DYNAMIC_ROUTING_DIR if is_service_enabled q-dr && is_service_enabled q-svc; then if is_protocol_enabled BGP; then diff --git a/devstack/plugin.sh b/devstack/plugin.sh index 554cb7c6..77435558 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -6,7 +6,7 @@ if [[ "$1" == "stack" ]]; then case "$2" in install) echo_summary "Installing neutron-dynamic-routing" - dr_configure + dr_install ;; post-config) echo_summary "Configuring neutron-dynamic-routing" diff --git a/setup.cfg b/setup.cfg index 08eac267..8a3c058b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -25,6 +25,8 @@ setup-hooks = pbr.hooks.setup_hook [entry_points] +console_scripts = + neutron-bgp-dragent = neutron_dynamic_routing.cmd.eventlet.agents.bgp_dragent:main neutron.db.alembic_migrations = neutron-dynamic-routing = neutron_dynamic_routing.db.migration:alembic_migrations oslo.config.opts =