blob: c7bab48ad11ac08b555fe9242fad96e8ec0004c3 [file] [log] [blame]
#!/usr/bin/env bash
ipaddr=$1
strategy=$2
faceid=$(nfdc create udp4://$ipaddr | grep -Po 'FaceId: .*?,' | sed 's/FaceId: //' | sed 's/,//')
nfdc add-nexthop ndn:/test-loop $faceid
nfdc set-strategy ndn:/test-loop $strategy