mgmt: handle rib/announce command
This commit adds logic to NFD so it can handle the new Prefix
Announcement protocol, which are commands sent to rib/announce
with Prefix Announcement object in the Application Parameters.
Refs: #4650
Change-Id: I2a306eb2c3eeb638cc789329d998bfa278880ca6
diff --git a/tests/daemon/mgmt/manager-common-fixture.hpp b/tests/daemon/mgmt/manager-common-fixture.hpp
index c8f5498..22d9120 100644
--- a/tests/daemon/mgmt/manager-common-fixture.hpp
+++ b/tests/daemon/mgmt/manager-common-fixture.hpp
@@ -59,6 +59,19 @@
ndn::security::SignedInterestFormat format = ndn::security::SignedInterestFormat::V03,
const Name& identity = DEFAULT_COMMAND_SIGNER_IDENTITY);
+ /**
+ * \brief Create a ControlCommand request for a Prefix Announcement.
+ * \param commandName Command name including prefix, such as `/localhost/nfd/rib/announce`
+ * \param prefixAnnouncement Prefix Announcement object
+ * \param identity Signing identity
+ *
+ * Per specification, Prefix Announcements use Signed Interest v0.3 only.
+ */
+ Interest
+ makeControlCommandRequest(Name commandName,
+ const ndn::PrefixAnnouncement& prefixAnnouncement,
+ const Name& identity = DEFAULT_COMMAND_SIGNER_IDENTITY);
+
protected:
static inline const Name DEFAULT_COMMAND_SIGNER_IDENTITY{"/InterestSignerFixture-identity"};