33 const std::function<
void()>& onSuccess,
34 const Controller::DatasetFailCallback& onFailure,
35 const CommandOptions& options)
37 controller.fetch<ndn::nfd::FibDataset>(
38 [
this, onSuccess] (
const std::vector<FibEntry>& result) {
49 for (
const FibEntry& item : m_status) {
60 os <<
"<prefix>" <<
xml::Text{item.getPrefix().toUri()} <<
"</prefix>";
63 for (
const NextHopRecord& nh : item.getNextHopRecords()) {
65 <<
"<faceId>" << nh.getFaceId() <<
"</faceId>"
66 <<
"<cost>" << nh.getCost() <<
"</cost>"
78 for (
const FibEntry& item : m_status) {
86 os <<
" " << item.getPrefix() <<
" nexthops={";
89 for (
const NextHopRecord& nh : item.getNextHopRecords()) {
91 <<
"faceid=" << nh.getFaceId()
92 <<
" (cost=" << nh.getCost() <<
")";
Print different string on first and subsequent usage.