Junxiao Shi | a59f207 | 2014-04-27 20:52:25 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | FACEURI=$1 | ||||
3 | |||||
Eric Newberry | 271f358 | 2015-06-18 20:00:26 -0700 | [diff] [blame] | 4 | if ! output=$(nfdc add-nexthop ndn:/ $FACEURI) |
Junxiao Shi | a59f207 | 2014-04-27 20:52:25 -0700 | [diff] [blame] | 5 | then |
6 | return 2 | ||||
7 | fi | ||||
8 | |||||
Eric Newberry | 271f358 | 2015-06-18 20:00:26 -0700 | [diff] [blame] | 9 | output=$(nfdc add-nexthop ndn:/localhost/test-out $FACEURI 2>&1) |
Junxiao Shi | a59f207 | 2014-04-27 20:52:25 -0700 | [diff] [blame] | 10 | return 0 |