Eliminate separate `nfdc create` step
refs #2906
Change-Id: I68b3a1af7d011006c473878c5946b8e68a754940
diff --git a/test_broadcast/broadcast-test.sh b/test_broadcast/broadcast-test.sh
index ebb1292..40e50ca 100755
--- a/test_broadcast/broadcast-test.sh
+++ b/test_broadcast/broadcast-test.sh
@@ -33,15 +33,12 @@
# set up forwarding on A
echo "setting up forwarding on A..."
nfdc set-strategy ndn:/test-bcast ndn:/localhost/nfd/strategy/broadcast
-faceid=$(nfdc create udp4://$IP4_B1 | grep -Po 'FaceId: .*?,' | sed 's/FaceId: //' | sed 's/,//')
-nfdc add-nexthop -c 10 ndn:/test-bcast $faceid
-faceid=$(nfdc create udp4://$IP4_C1 | grep -Po 'FaceId: .*?,' | sed 's/FaceId: //' | sed 's/,//')
-nfdc add-nexthop -c 20 ndn:/test-bcast $faceid
+nfdc add-nexthop -c 10 ndn:/test-bcast udp4://$IP4_B1
+nfdc add-nexthop -c 20 ndn:/test-bcast udp4://$IP4_C1
# set up forwarding on D
echo "setting up forwarding on D..."
-faceid=$(ssh $CTRL_D "nfdc create udp4://$IP4_A2" | grep -Po 'FaceId: .*?,' | sed 's/FaceId: //' | sed 's/,//')
-ssh $CTRL_D "nfdc add-nexthop ndn:/test-bcast $faceid"
+ssh $CTRL_D "nfdc add-nexthop ndn:/test-bcast udp4://$IP4_A2"
# run ndn-traffic client on D
echo "running ndn-traffic client on D..."