mgmt: refactor StrategyChoiceManager to use StrategyChoiceOptions (from FibManagementOptions)
refs: #1311
Change-Id: I104acede81d2ff00607b37ebccf741836aee3efb
diff --git a/daemon/mgmt/strategy-choice-manager.cpp b/daemon/mgmt/strategy-choice-manager.cpp
index 665f4a8..cd4dc5b 100644
--- a/daemon/mgmt/strategy-choice-manager.cpp
+++ b/daemon/mgmt/strategy-choice-manager.cpp
@@ -72,7 +72,7 @@
const Name& command = request->getName();
- ndn::nfd::FibManagementOptions options;
+ ndn::nfd::StrategyChoiceOptions options;
if (!extractOptions(*request, options))
{
sendResponse(command, 400, "Malformed command");
@@ -99,7 +99,7 @@
bool
StrategyChoiceManager::extractOptions(const Interest& request,
- ndn::nfd::FibManagementOptions& extractedOptions)
+ ndn::nfd::StrategyChoiceOptions& extractedOptions)
{
const Name& command = request.getName();
const size_t optionCompIndex =
@@ -121,7 +121,7 @@
}
void
-StrategyChoiceManager::setStrategy(const ndn::nfd::FibManagementOptions& options,
+StrategyChoiceManager::setStrategy(const ndn::nfd::StrategyChoiceOptions& options,
ControlResponse& response)
{
const Name& prefix = options.getName();
@@ -146,7 +146,7 @@
}
void
-StrategyChoiceManager::unsetStrategy(const ndn::nfd::FibManagementOptions& options,
+StrategyChoiceManager::unsetStrategy(const ndn::nfd::StrategyChoiceOptions& options,
ControlResponse& response)
{
static const Name ROOT_PREFIX;