Eliminate separate `nfdc create` step
refs #2906
Change-Id: I68b3a1af7d011006c473878c5946b8e68a754940
diff --git a/test_localhop/localhop-test.sh b/test_localhop/localhop-test.sh
index 61374d9..4c6d3d3 100755
--- a/test_localhop/localhop-test.sh
+++ b/test_localhop/localhop-test.sh
@@ -30,8 +30,7 @@
echo "starting nfd and adding nexthop of ndn:/localhop to B on host A..."
sudo nfd > logs/nfd.log 2>&1 &
sleep 3
-faceid=$(nfdc create udp4://$b_ipaddr | grep -Po 'FaceId: .*?,' | sed 's/FaceId: //' | sed 's/,//')
-nfdc add-nexthop ndn:/localhop $faceid
+nfdc add-nexthop ndn:/localhop udp4://$b_ipaddr
if [[ $? -ne 0 ]]
then
echo "Fail to add nexthop of ndn:/localhop"