#!/usr/bin/env bash
Addr=$1
names='broker1 broker2 broker3 broker4'
routers='Router.A Router.B'
for name in $names
do
  for router in $routers
  do
     qdmanage -r $router create --type org.apache.qpid.dispatch.router.config.autoLink addr=$1 dir=in connection=$name
     qdmanage -r $router create --type org.apache.qpid.dispatch.router.config.autoLink addr=$1 dir=out connection=$name
  done
done
