mgmt: add faces/update command
refs #3731
Change-Id: I79777a10feecb2de83276371100cc86a43d0e76d
diff --git a/daemon/mgmt/face-manager.hpp b/daemon/mgmt/face-manager.hpp
index 094f288..b168da4 100644
--- a/daemon/mgmt/face-manager.hpp
+++ b/daemon/mgmt/face-manager.hpp
@@ -61,15 +61,26 @@
const ndn::mgmt::CommandContinuation& done);
void
+ updateFace(const Name& topPrefix, const Interest& interest,
+ const ControlParameters& parameters,
+ const ndn::mgmt::CommandContinuation& done);
+
+ void
destroyFace(const Name& topPrefix, const Interest& interest,
const ControlParameters& parameters,
const ndn::mgmt::CommandContinuation& done);
+ /**
+ * \deprecated use Flags+Mask in faces/update instead
+ */
void
enableLocalControl(const Name& topPrefix, const Interest& interest,
const ControlParameters& parameters,
const ndn::mgmt::CommandContinuation& done);
+ /**
+ * \deprecated use Flags+Mask in faces/update instead
+ */
void
disableLocalControl(const Name& topPrefix, const Interest& interest,
const ControlParameters& parameters,
@@ -91,6 +102,11 @@
const ControlParameters& parameters,
const ndn::mgmt::CommandContinuation& done);
+ static void
+ setLinkServiceOptions(Face& face,
+ const ControlParameters& parameters,
+ ControlParameters& response);
+
PUBLIC_WITH_TESTS_ELSE_PRIVATE: // StatusDataset
void
listFaces(const Name& topPrefix, const Interest& interest,
@@ -151,9 +167,9 @@
PUBLIC_WITH_TESTS_ELSE_PRIVATE:
std::map<std::string /*protocol*/, shared_ptr<ProtocolFactory>> m_factories;
+ FaceTable& m_faceTable;
private:
- FaceTable& m_faceTable;
ndn::mgmt::PostNotification m_postNotification;
signal::ScopedConnection m_faceAddConn;
signal::ScopedConnection m_faceRemoveConn;