mgmt: echo FibManagementOptions as response body on command success
Add support for commands with FaceId == zero
refs: #1236
Change-Id: If67e955668d5a3622893582111601d358df9137e
diff --git a/daemon/mgmt/manager-base.hpp b/daemon/mgmt/manager-base.hpp
index e8d63cf..8fb8cd3 100644
--- a/daemon/mgmt/manager-base.hpp
+++ b/daemon/mgmt/manager-base.hpp
@@ -30,6 +30,11 @@
setResponse(ControlResponse& response,
uint32_t code,
const std::string& text);
+ void
+ setResponse(ControlResponse& response,
+ uint32_t code,
+ const std::string& text,
+ const Block& body);
void
sendResponse(const Name& name,
@@ -53,6 +58,16 @@
response.setText(text);
}
+inline void
+ManagerBase::setResponse(ControlResponse& response,
+ uint32_t code,
+ const std::string& text,
+ const Block& body)
+{
+ setResponse(response, code, text);
+ response.setBody(body);
+}
+
} // namespace nfd