blob: 03710e85e0cf2c42ae81f8f817e25989564ea88d [file] [log] [blame]
#!/bin/bash
workdir=$1
c_ipaddr=$2
sudo nfd > $workdir/logs/nfd.log 2>&1 &
sleep 3
faceid=$(nfdc create udp4://$c_ipaddr | grep -Po 'FaceId: .*?,' | sed 's/FaceId: //' | sed 's/,//')
nfdc add-nexthop ndn:/localhop $faceid