34 #include <ndn-cxx/security/validator-null.hpp>
43 unique_ptr<Validator> validator = make_unique<ndn::ValidatorNull>();
44 CommandOptions ctrlOptions;
49 auto nfdIdCollector = make_unique<NfdIdCollector>(std::move(validator));
50 auto forwarderGeneralModule = make_unique<ForwarderGeneralModule>();
51 forwarderGeneralModule->setNfdIdCollector(*nfdIdCollector);
52 report.
sections.push_back(std::move(forwarderGeneralModule));
53 validator = std::move(nfdIdCollector);
57 report.
sections.push_back(make_unique<ChannelModule>());
61 report.
sections.push_back(make_unique<FaceModule>());
65 report.
sections.push_back(make_unique<FibModule>());
69 report.
sections.push_back(make_unique<RibModule>());
73 report.
sections.push_back(make_unique<StrategyChoiceModule>());
83 std::cerr <<
"Error while collecting status report (" << code <<
").\n";
104 options.*wantSection =
true;
125 .
setTitle(
"print NFD status report")
133 parser.
addAlias(
"status",
"show",
"list");
147 .
setTitle(
"print strategy choices");
context for command execution
Copyright (c) 2014-2015, Regents of the University of California, Arizona Board of Regents...
const CommandArguments & args