tools: nfdc route list and nfd route show commands

refs #3866

Change-Id: Ic8feab0ce9e5707c1cf382cdea7264e28e3edb30
This commit is contained in:
Junxiao Shi
2017-03-08 22:39:28 +00:00
parent 89c0ea0621
commit 1d62e62bc0
7 changed files with 336 additions and 43 deletions
+11 -6
View File
@@ -3,11 +3,12 @@ nfdc-route
SYNOPSIS
--------
| nfdc route [list]
| nfdc fib [list]
| nfdc route [list [[nexthop] <FACEID|FACEURI>] [origin <ORIGIN>]]
| nfdc route show [prefix] <PREFIX>
| nfdc route add [prefix] <PREFIX> [nexthop] <FACEID|FACEURI> [origin <ORIGIN>] [cost <COST>]
| [no-inherit] [capture] [expires <EXPIRATION-MILLIS>]
| nfdc unregister [-o <ORIGIN>] <PREFIX> <FACEID>
| nfdc route remove [prefix] <PREFIX> [nexthop] <FACEID|FACEURI> [origin <ORIGIN>]
| nfdc fib [list]
DESCRIPTION
-----------
@@ -17,10 +18,9 @@ Each *route* in the RIB indicates that contents under a name prefix may be avail
A route contains a name prefix, a nexthop face, the origin, a cost, and a set of route inheritance flags;
refer to NFD Management protocol for more information.
The **nfdc route list** command shows a list of routes in the RIB.
The **nfdc route list** command lists RIB routes, optionally filtered by nexthop and origin.
The **nfdc fib list** command shows the forwarding information base (FIB),
which is calculated from RIB routes and used directly by NFD forwarding.
The **nfdc route show** command shows RIB routes at a specified name prefix.
The **nfdc route add** command requests to add a route.
If a route with the same prefix, nexthop, and origin already exists,
@@ -29,6 +29,9 @@ This command returns when the request has been accepted, but does not wait for R
The **nfdc route remove** command removes a route with matching prefix, nexthop, and origin.
The **nfdc fib list** command shows the forwarding information base (FIB),
which is calculated from RIB routes and used directly by NFD forwarding.
OPTIONS
-------
<PREFIX>
@@ -77,6 +80,8 @@ EXIT CODES
5: Ambiguous: multiple matching faces are found (**nfdc route add** only)
6: Route not found (**nfdc route list** and **nfdc route show** only)
SEE ALSO
--------
nfd(1), nfdc(1)