Provides access to NFD RIB management. More...
#include <tools/nfdc/rib-module.hpp>
Public Member Functions | |
void | fetchStatus (ndn::nfd::Controller &controller, const std::function< void()> &onSuccess, const ndn::nfd::DatasetFailureCallback &onFailure, const CommandOptions &options) override |
Collect status from NFD. More... | |
void | formatStatusText (std::ostream &os) const override |
Format collected status as text. More... | |
void | formatStatusXml (std::ostream &os) const override |
Format collected status as XML. More... | |
Static Public Member Functions | |
static void | add (ExecuteContext &ctx) |
The 'route add' command. More... | |
static void | list (ExecuteContext &ctx) |
The 'route list' command. More... | |
static void | registerCommands (CommandParser &parser) |
Register 'route list', 'route show', 'route add', 'route remove' commands. More... | |
static void | remove (ExecuteContext &ctx) |
The 'route remove' command. More... | |
static void | show (ExecuteContext &ctx) |
The 'route show' command. More... | |
Provides access to NFD RIB management.
Definition at line 43 of file rib-module.hpp.
|
static |
The 'route add' command.
Definition at line 145 of file rib-module.cpp.
|
overridevirtual |
Collect status from NFD.
controller | a controller through which StatusDataset can be requested |
onSuccess | invoked when status has been collected into this instance |
onFailure | passed to controller.fetch |
options | passed to controller.fetch |
Implements nfd::tools::nfdc::Module.
Definition at line 305 of file rib-module.cpp.
|
overridevirtual |
Format collected status as text.
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 367 of file rib-module.cpp.
|
overridevirtual |
Format collected status as XML.
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 319 of file rib-module.cpp.
|
static |
The 'route list' command.
Definition at line 74 of file rib-module.cpp.
|
static |
Register 'route list', 'route show', 'route add', 'route remove' commands.
Definition at line 36 of file rib-module.cpp.
|
static |
The 'route remove' command.
Definition at line 257 of file rib-module.cpp.
|
static |
The 'route show' command.
Definition at line 108 of file rib-module.cpp.