mgmt: migrate to new Dispatcher API for control commands
Change-Id: Iaba68dde879fbb562e13ef383e0b753174708baa
diff --git a/daemon/mgmt/face-manager.cpp b/daemon/mgmt/face-manager.cpp
index e822f12..34eb8e6 100644
--- a/daemon/mgmt/face-manager.cpp
+++ b/daemon/mgmt/face-manager.cpp
@@ -49,12 +49,15 @@
, m_faceTable(faceSystem.getFaceTable())
{
// register handlers for ControlCommand
- registerCommandHandler<ndn::nfd::FaceCreateCommand>("create",
- [this] (auto&&, auto&&, auto&&... args) { createFace(std::forward<decltype(args)>(args)...); });
- registerCommandHandler<ndn::nfd::FaceUpdateCommand>("update",
- [this] (auto&&, auto&&... args) { updateFace(std::forward<decltype(args)>(args)...); });
- registerCommandHandler<ndn::nfd::FaceDestroyCommand>("destroy",
- [this] (auto&&, auto&&, auto&&... args) { destroyFace(std::forward<decltype(args)>(args)...); });
+ registerCommandHandler<ndn::nfd::FaceCreateCommand>([this] (auto&&, auto&&, auto&&... args) {
+ createFace(std::forward<decltype(args)>(args)...);
+ });
+ registerCommandHandler<ndn::nfd::FaceUpdateCommand>([this] (auto&&, auto&&... args) {
+ updateFace(std::forward<decltype(args)>(args)...);
+ });
+ registerCommandHandler<ndn::nfd::FaceDestroyCommand>([this] (auto&&, auto&&, auto&&... args) {
+ destroyFace(std::forward<decltype(args)>(args)...);
+ });
// register handlers for StatusDataset
registerStatusDatasetHandler("list",