tools: deprecate nfdc register/unregister/add-nexthop/remove-nexthop
They are replaced by 'nfdc route add' and 'nfdc route remove'.
refs #3866
Change-Id: I8040bf39ce9bd4b68409896c355beb12b0da5692
diff --git a/tools/nfdc/available-commands.cpp b/tools/nfdc/available-commands.cpp
index d6782ac..dced4b1 100644
--- a/tools/nfdc/available-commands.cpp
+++ b/tools/nfdc/available-commands.cpp
@@ -53,13 +53,13 @@
};
const std::vector<LegacyNfdcCommandDefinition> legacyNfdcSubcommands{
{"register", "register a prefix", "route add"},
- {"unregister", "unregister a prefix", ""},
+ {"unregister", "unregister a prefix", "route remove"},
{"create", "create a face", "face create"},
{"destroy", "destroy a face", "face destroy"},
{"set-strategy", "set strategy choice on namespace", ""},
{"unset-strategy", "unset strategy choice on namespace", ""},
- {"add-nexthop", "add FIB nexthop", ""},
- {"remove-nexthop", "remove FIB nexthop", ""}
+ {"add-nexthop", "add FIB nexthop", "route add"},
+ {"remove-nexthop", "remove FIB nexthop", "route remove"}
};
for (const LegacyNfdcCommandDefinition& lncd : legacyNfdcSubcommands) {
CommandDefinition def(lncd.subcommand, "");