Gitiles
Code Review
Sign In
gerrit.opencord.org
/
voltha
/
a4bca4a2db4f0f227568c8c1f4a55b3d18d0b99c
/
.
/
kafka
/
broker-list.sh
blob: 7f046393bab60ca1c75b952799710372613c4bb4 [
file
] [
log
] [
blame
]
#!/bin/bash
CONTAINERS
=
$
(
docker ps
|
grep
9092
|
awk
'{print $1}'
)
BROKERS
=
$
(
for
CONTAINER
in
$CONTAINERS
;
do
docker port $CONTAINER
9092
|
sed
-
e
"s/0.0.0.0:/$HOST_IP:/g"
;
done
)
echo $BROKERS
|
sed
-
e
's/ /,/g'