mgmt: migrate to new Dispatcher API for control commands
Change-Id: Iaba68dde879fbb562e13ef383e0b753174708baa
diff --git a/daemon/mgmt/fib-manager.cpp b/daemon/mgmt/fib-manager.cpp
index cdae3f6..4de989e 100644
--- a/daemon/mgmt/fib-manager.cpp
+++ b/daemon/mgmt/fib-manager.cpp
@@ -44,12 +44,15 @@
, m_fib(fib)
, m_faceTable(faceTable)
{
- registerCommandHandler<ndn::nfd::FibAddNextHopCommand>("add-nexthop",
- [this] (auto&&, auto&&... args) { addNextHop(std::forward<decltype(args)>(args)...); });
- registerCommandHandler<ndn::nfd::FibRemoveNextHopCommand>("remove-nexthop",
- [this] (auto&&, auto&&... args) { removeNextHop(std::forward<decltype(args)>(args)...); });
- registerStatusDatasetHandler("list",
- [this] (auto&&, auto&&, auto&&... args) { listEntries(std::forward<decltype(args)>(args)...); });
+ registerCommandHandler<ndn::nfd::FibAddNextHopCommand>([this] (auto&&, auto&&... args) {
+ addNextHop(std::forward<decltype(args)>(args)...);
+ });
+ registerCommandHandler<ndn::nfd::FibRemoveNextHopCommand>([this] (auto&&, auto&&... args) {
+ removeNextHop(std::forward<decltype(args)>(args)...);
+ });
+ registerStatusDatasetHandler("list", [this] (auto&&, auto&&, auto&&... args) {
+ listEntries(std::forward<decltype(args)>(args)...);
+ });
}
void