Provides access to NFD RIB management. More...
#include <tools/nfdc/rib-module.hpp>
Public Member Functions | |
void | fetchStatus (Controller &controller, const std::function< void()> &onSuccess, const Controller::DatasetFailCallback &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 40 of file rib-module.hpp.
|
static |
The 'route add' command.
Definition at line 143 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 303 of file rib-module.cpp.
|
overridevirtual |
Format collected status as text.
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 365 of file rib-module.cpp.
|
overridevirtual |
Format collected status as XML.
os | output stream |
Implements nfd::tools::nfdc::Module.
Definition at line 317 of file rib-module.cpp.
|
static |
The 'route list' command.
Definition at line 72 of file rib-module.cpp.
|
static |
Register 'route list', 'route show', 'route add', 'route remove' commands.
Definition at line 34 of file rib-module.cpp.
|
static |
The 'route remove' command.
Definition at line 255 of file rib-module.cpp.
|
static |
The 'route show' command.
Definition at line 106 of file rib-module.cpp.