mgmt: change strategy-choice/set response codes
If the specified strategy name cannot be instantiated,
respond with 404 status code.
refs #3868
Change-Id: I8275923f149ec9c2ed82e485e933d16320bd3a03
diff --git a/daemon/mgmt/strategy-choice-manager.hpp b/daemon/mgmt/strategy-choice-manager.hpp
index 5520790..00d4dd9 100644
--- a/daemon/mgmt/strategy-choice-manager.hpp
+++ b/daemon/mgmt/strategy-choice-manager.hpp
@@ -47,18 +47,15 @@
private:
void
- setStrategy(const Name& topPrefix, const Interest& interest,
- ControlParameters parameters,
+ setStrategy(ControlParameters parameters,
const ndn::mgmt::CommandContinuation& done);
void
- unsetStrategy(const Name& topPrefix, const Interest& interest,
- ControlParameters parameters,
+ unsetStrategy(ControlParameters parameters,
const ndn::mgmt::CommandContinuation& done);
void
- listChoices(const Name& topPrefix, const Interest& interest,
- ndn::mgmt::StatusDatasetContext& context);
+ listChoices(ndn::mgmt::StatusDatasetContext& context);
private:
strategy_choice::StrategyChoice& m_table;