tools: delete legacy nfdc and nfd-status invocations
The following legacy nfdc sub-commands are deleted:
- register
- unregister
- create
- destroy
- set-strategy
- unset-strategy
- add-nexthop
- remove nexthop
nfd-status no longer accepts command line arguments.
refs #4198
Change-Id: I3ec61fd24c09599c87f07bd92d8f0b5f4e7c70de
diff --git a/docs/manpages/nfd-status.rst b/docs/manpages/nfd-status.rst
index 732cd86..f140483 100644
--- a/docs/manpages/nfd-status.rst
+++ b/docs/manpages/nfd-status.rst
@@ -1,56 +1,14 @@
nfd-status
==========
-Usage
------
+SYNOPSIS
+--------
+| nfd-status
-::
-
- nfd-status
-
-Description
+DESCRIPTION
-----------
+**nfd-status** is an alias of **nfdc status report**, which prints a comprehensive report of NFD status.
-``nfd-status`` is an alias of ``nfdc status report``, which generates a comprehensive report of NFD status.
-
-Deprecated Options
-------------------
-
-nfd-status used to support the following command line options.
-They have been deprecated and will be removed in a future release of NFD.
-
-``-v``
- Print general status. Use ``nfdc status show`` instead.
-
-``-c``
- Print channel list. Use ``nfdc channel list`` instead.
-
-``-f``
- Print face list. Use ``nfdc face list`` instead.
-
-``-b``
- Print FIB entries. Use ``nfdc fib list`` instead.
-
-``-r``
- Print RIB entries. Use ``nfdc route list`` instead.
-
-``-s``
- Print strategy choices. Use ``nfdc strategy list`` instead.
-
-``-x``
- Generate a comprehensive report of NFD status in XML format. Use ``nfdc status report xml`` instead.
-
-``-h``
- Print usage information.
-
-``-V``
- Show version information of nfd-status and exit.
-
-Exit Codes
-----------
-
-0: Success
-
-1: An unspecified error occurred
-
-2: Malformed command line
+SEE ALSO
+--------
+nfdc-status(1)
diff --git a/docs/manpages/nfdc-status.rst b/docs/manpages/nfdc-status.rst
index c5bdede..cfbdec4 100644
--- a/docs/manpages/nfdc-status.rst
+++ b/docs/manpages/nfdc-status.rst
@@ -11,7 +11,7 @@
The **nfdc status show** command shows general status of NFD, including its version,
uptime, data structure counters, and global packet counters.
-The **nfdc status report** command generates a comprehensive report of NFD status, including:
+The **nfdc status report** command prints a comprehensive report of NFD status, including:
- general status (individually available from **nfdc status show**)
- list of channels (individually available from **nfdc channel list**)
diff --git a/docs/manpages/nfdc.rst b/docs/manpages/nfdc.rst
index c6fb3b8..406bf35 100644
--- a/docs/manpages/nfdc.rst
+++ b/docs/manpages/nfdc.rst
@@ -1,206 +1,48 @@
nfdc
====
-Usage
------
-
-::
-
- nfdc [-h] COMMAND [<command options>]
-
-
-Description
------------
-
-``nfdc`` is a tool to manipulate routing information base (RIB), forwarding information
-base (FIB), and StrategyChoices table (i.e., which strategy should be used by which
-namespaces).
-
-Options
--------
-
-``-h``
- Print usage information.
-
-``COMMAND``
-
- ``register``
- Register a new or update existing routing entry in Routing Information Base (RIB).
-
- ``register [-I] [-C] [-c <cost>] [-e expiration time] [-o origin] <prefix> <faceId | faceUri>``
-
- ``-I``
- Unset CHILD_INHERIT flag from the routing entry.
-
- ``-C``
- Set CAPTURE flag in the routing entry.
-
- ``-c <cost>``
- Cost for the RIB entry (default is 0).
-
- ``-e <expiration time>``
- Expiration time of the RIB entry in milliseconds. If not specified, the entry remains in FIB
- for the lifetime of the associated face.
-
- ``-o <origin>``
- Origin of the registration request (default is 255).
- 0 for Local producer applications, 128 for NLSR, 255 for static routes.
-
- ``prefix``
- A prefix of an existing or to be created RIB entry, for which routing entry is
- requested to be added or updated.
-
- ``faceId``
- An existing NFD Face ID number, which can be obtained, for example, using
- ``nfd-status`` command.
-
- ``faceUri``
- URI of the existing or to be created Face.
-
- ``unregister``
- Unregister an existing routing entry from Routing Information Base (RIB).
-
- ``unregister [-o origin] <prefix> <faceId>``
-
- ``-o <origin>``
- Origin of the unregistration request (default is 255).
-
- ``prefix``
- A prefix of an existing RIB entry, from which routing entry is requested to be
- removed.
-
- ``faceId``
- An existing NFD Face ID number, which can be obtained, for example, using
- ``nfd-status`` command.
-
- ``create``
- Create a UDP unicast or TCP Face
-
- ``create [-P] <faceUri>``
-
- ``-P``
- create permanent (instead of persistent) face:
-
- .. note::
- Persistent (default) faces remain open until they are explicitly destroyed or
- there is a transport failure. Permanent faces remain open until they are
- explicitly destroyed; any transport failures will be recovered internally.
-
- ``faceUri``
- UDP unicast or TCP Face URI::
-
- UDP unicast: udp[4|6]://<remote-IP-or-host>[:<remote-port>]
- TCP: tcp[4|6]://<remote-IP-or-host>[:<remote-port>]
-
- ``destroy``
- Create an existing UDP unicast or TCP Face.
-
- ``destroy <faceId | faceUri>``
-
- ``faceId``
- An existing NFD Face ID number, which can be obtained, for example, using
- ``nfd-status`` command.
-
- ``faceUri``
- UDP unicast or TCP Face URI::
-
- UDP unicast: udp[4|6]://<remote-IP-or-host>[:<remote-port>]
- TCP: tcp[4|6]://<remote-IP-or-host>[:<remote-port>]
-
- ``set-strategy``
- Select strategy to be used for the specified namespace
-
- ``set-strategy <namespace> <strategy-name>``
-
- ``namespace``
- Namespace that will use the specified strategy.
-
- Note that more specific namespace(s) can use different strategy or strategies.
- For example, if namespace ``/A/B/C`` was using strategy
- ``ndn:/localhost/nfd/strategy/best-route`` before running ``set-strategy`` on
- ``/A`` namespace, it will continue using the same strategy no matter which
- namespace was specified for ``/A``.
-
- ``strategy-name``
- Name of one of the available strategies.
-
- Currently, NFD supports the following strategies::
-
- ndn:/localhost/nfd/strategy/best-route
- ndn:/localhost/nfd/strategy/multicast
- ndn:/localhost/nfd/strategy/client-control
- ndn:/localhost/nfd/strategy/ncc
- ndn:/localhost/nfd/strategy/access
-
- ``unset-strategy``
- Unset the strategy for a given ``namespace``.
-
- Effectively, this command select parent's namespace strategy to be used for the
- specified ``namespace``.
-
- ``unset-strategy <namespace>``
-
- ``namespace``
- Namespace from which namespace customization should be removed.
-
- ``add-nexthop``
- Directly add nexthop entry info NFD's Forwarding Information Base (FIB). This command
- is intended only for debugging purposes. Normally, prefix-nexhop association should
- be registered in Routing Information Base using ``register`` command.
-
- ``add-nexthop [-c <cost>] <prefix> <faceId | faceUri>``
-
- ``-c <cost>``
- Cost for the nexthop entry to be inserted (default is 0).
-
- ``prefix``
- A prefix of an existing or to be created FIB entry, to which nexthop
- entry is requested to be added.
-
- ``faceId``
- An existing NFD Face ID number, which can be obtained, for example, using
- ``nfd-status`` command
-
- ``faceUri``
- URI of the existing or to be created Face.
-
- ``remove-nexthop``
- Directly remove nexthop entry from NFD'S FIB. This command
- is intended only for debugging purposes. Normally, prefix-nexhop association should
- be unregistered from Routing Information Base using ``unregister`` command.
-
- ``remove-nexthop <prefix> <faceId>``
-
- ``prefix``
- A prefix of an existing FIB entry, from which nexthop entry is requested to be removed.
-
- ``faceId``
- An existing NFD Face ID number, which can be obtained, for example, using
- ``nfd-status`` command.
-
- Note that when ``faceId`` is the last Face associated with ``prefix`` FIB entry,
- the whole FIB entry will be removed.
-
-Exit Codes
-----------
-
-0: Success
-
-1: An unspecified error occurred
-
-2: Malformed command line
-
-Examples
+SYNOPSIS
--------
+| nfdc COMMAND ARGUMENTS
+| nfdc [-h]
+| nfdc -V
+| nfdc help COMMAND
-Add a namespace to a face uri:
+DESCRIPTION
+-----------
+**nfdc** is a tool to manage a running instance of NFD.
+Features of nfdc are organized into subcommands.
+To print a list of all subcommands, run **nfdc** without arguments.
+To show how to use a subcommand, run **nfdc help** followed by the subcommand name.
+
+OPTIONS
+-------
+<COMMAND>
+ A subcommand name.
+ It usually contains a noun and a verb.
+
+<ARGUMENTS>
+ Arguments to the subcommand.
+
+-h
+ Print a list of available subcommands.
+
+-V
+ Print version number.
+
+EXAMPLES
+--------
+Print a list of all subcommands:
::
- nfdc register ndn:/app1/video udp://192.168.1.2
+ $ nfdc
-Set strategy to a name:
-
+Show how to use ``nfdc face create`` command:
::
- nfdc set-strategy ndn:/app1/video ndn:/localhost/nfd/strategy/broadcast
+ $ nfdc help face create
+
+SEE ALSO
+--------
+nfdc-status(1), nfdc-face(1), nfdc-route(1), nfdc-strategy(1)