Task #1515
Updated by Junxiao Shi over 10 years ago
Extend destroy/add-nexthop/register destroy/add-nexthop/remove-nexthop/register/unregister subcommands to allow FaceUri in place of FaceId: nfdc destroy FaceId-or-FaceUri nfdc add-nexthop [-c cost] /prefix FaceId-or-FaceUri nfdc remove-nexthop /prefix FaceId-or-FaceUri nfdc register [-I] [-C] [-c cost] /prefix FaceId-or-FaceUri nfdc unregister /prefix FaceId-or-FaceUri Only FaceUris acceptable by [[FaceMgmt#Create-a-face|faces/create]] command are allowed. When FaceUri is specified in place of FaceId, faces/create command is called to retrieve the FaceId (or create a new face if it does not exist). "add" subcommand is deleted because it becomes a duplicate of "add-nexthop" command. "add-nexthop" syntax is slightly modified to make *cost* an optional named argument, instead of an optional positional argument.