tools: nfdc route add command
This commit also simplifies 'nfdc face destroy' and its test case.
'nfdc register' is deprecated in favor of 'nfdc route add'.
refs #3866
Change-Id: I1de5cc0bc956d57b0793da920c1e87b3580a3297
diff --git a/tools/nfdc/available-commands.cpp b/tools/nfdc/available-commands.cpp
index 586da48..d6782ac 100644
--- a/tools/nfdc/available-commands.cpp
+++ b/tools/nfdc/available-commands.cpp
@@ -24,11 +24,12 @@
*/
#include "available-commands.hpp"
-#include "help.hpp"
-#include "status.hpp"
#include "face-module.hpp"
-#include "legacy-status.hpp"
+#include "help.hpp"
#include "legacy-nfdc.hpp"
+#include "legacy-status.hpp"
+#include "rib-module.hpp"
+#include "status.hpp"
namespace nfd {
namespace tools {
@@ -40,6 +41,7 @@
registerHelpCommand(parser);
registerStatusCommands(parser);
FaceModule::registerCommands(parser);
+ RibModule::registerCommands(parser);
registerLegacyStatusCommand(parser);
@@ -50,7 +52,7 @@
std::string replacementCommand; ///< replacement for deprecated legacy subcommand
};
const std::vector<LegacyNfdcCommandDefinition> legacyNfdcSubcommands{
- {"register", "register a prefix", ""},
+ {"register", "register a prefix", "route add"},
{"unregister", "unregister a prefix", ""},
{"create", "create a face", "face create"},
{"destroy", "destroy a face", "face destroy"},