From 70e18b5738d7c1a77adc41217d96ea3e2830ab67 Mon Sep 17 00:00:00 2001 From: Kenneth Giusti Date: Fri, 23 Feb 2018 17:01:04 -0500 Subject: [PATCH] update configuration for qdrouter v1.0.0 Change-Id: I1355d7dd6767378bacd7394013416ac0d27c8770 --- devstack/plugin.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/devstack/plugin.sh b/devstack/plugin.sh index dc215a3..44c560d 100644 --- a/devstack/plugin.sh +++ b/devstack/plugin.sh @@ -254,6 +254,8 @@ function _configure_qdr { local url url=$(_parse_transport_url $1) + QDR=$(type -p qdrouterd) + # the location of the configuration is /etc/qpid-dispatch local qdr_conf_file if [ -e /etc/qpid-dispatch/qdrouterd.conf ]; then @@ -275,7 +277,6 @@ router { workerThreads: 4 saslConfigPath: /etc/sasl2 saslConfigName: qdrouterd - debugDump: /opt/stack/amqp1 } EOF @@ -283,9 +284,14 @@ EOF # Create a listener for incoming connect to the router local port port=$(echo "$url" | cut -d' ' -f2) + + # ip address field name changed to 'host' at 1.0+ + local field_name + field_name=$([[ $($QDR -v) == 0.*.* ]] && echo addr || echo host) + cat <