blob: a1707ef18334d539695e2f55e2b47ef1cc901a78 [file] [log] [blame]
Alexander Afanasyev3ecec502014-04-16 13:42:44 -07001/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
Junxiao Shi75306352018-02-01 21:59:44 +00002/*
3 * Copyright (c) 2014-2018, Regents of the University of California,
Junxiao Shi1e46be32015-01-08 20:18:05 -07004 * Arizona Board of Regents,
5 * Colorado State University,
6 * University Pierre & Marie Curie, Sorbonne University,
7 * Washington University in St. Louis,
8 * Beijing Institute of Technology,
9 * The University of Memphis.
Alexander Afanasyev3ecec502014-04-16 13:42:44 -070010 *
11 * This file is part of NFD (Named Data Networking Forwarding Daemon).
12 * See AUTHORS.md for complete list of NFD authors and contributors.
13 *
14 * NFD is free software: you can redistribute it and/or modify it under the terms
15 * of the GNU General Public License as published by the Free Software Foundation,
16 * either version 3 of the License, or (at your option) any later version.
17 *
18 * NFD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
19 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
20 * PURPOSE. See the GNU General Public License for more details.
21 *
22 * You should have received a copy of the GNU General Public License along with
23 * NFD, e.g., in COPYING.md file. If not, see <http://www.gnu.org/licenses/>.
Vince12e49462014-06-09 13:29:32 -050024 */
Alexander Afanasyev3ecec502014-04-16 13:42:44 -070025
26#include "rib-manager.hpp"
Nick Gordon9fcf1232017-03-10 22:30:20 +000027
Junxiao Shi75306352018-02-01 21:59:44 +000028#include "core/fib-max-depth.hpp"
Alexander Afanasyev89cf5e02014-04-17 12:08:57 -070029#include "core/logger.hpp"
Alexander Afanasyev63108c42014-07-07 19:10:47 -070030#include "core/scheduler.hpp"
Nick Gordon9fcf1232017-03-10 22:30:20 +000031
Junxiao Shicbc8e942016-09-06 03:17:45 +000032#include <ndn-cxx/lp/tags.hpp>
Nick Gordon9fcf1232017-03-10 22:30:20 +000033#include <ndn-cxx/mgmt/nfd/control-command.hpp>
Nick Gordon9fcf1232017-03-10 22:30:20 +000034#include <ndn-cxx/mgmt/nfd/control-parameters.hpp>
Junxiao Shi3f21e582017-05-29 15:26:32 +000035#include <ndn-cxx/mgmt/nfd/control-response.hpp>
Junxiao Shi25c6ce42016-09-09 13:49:59 +000036#include <ndn-cxx/mgmt/nfd/face-status.hpp>
37#include <ndn-cxx/mgmt/nfd/rib-entry.hpp>
Alexander Afanasyev3ecec502014-04-16 13:42:44 -070038
39namespace nfd {
40namespace rib {
41
Davide Pesaventoa3148082018-04-12 18:21:54 -040042NFD_LOG_INIT(RibManager);
Alexander Afanasyev89cf5e02014-04-17 12:08:57 -070043
Junxiao Shif4cfed12018-08-22 23:26:29 +000044static const std::string MGMT_MODULE_NAME = "rib";
45static const Name LOCALHOST_TOP_PREFIX = "/localhost/nfd";
46static const Name LOCALHOP_TOP_PREFIX = "/localhop/nfd";
47static const time::seconds ACTIVE_FACE_FETCH_INTERVAL = time::seconds(300);
Vince Lehman26b215c2014-08-17 15:00:41 -050048
Junxiao Shif4cfed12018-08-22 23:26:29 +000049RibManager::RibManager(Rib& rib, ndn::Face& face, ndn::nfd::Controller& nfdController, Dispatcher& dispatcher)
Junxiao Shifde3f542016-07-10 19:54:53 +000050 : ManagerBase(dispatcher, MGMT_MODULE_NAME)
Davide Pesavento9f8b10e2018-08-22 08:45:37 +000051 , m_rib(rib)
Junxiao Shif4cfed12018-08-22 23:26:29 +000052 , m_nfdController(nfdController)
53 , m_dispatcher(dispatcher)
Davide Pesavento9f8b10e2018-08-22 08:45:37 +000054 , m_faceMonitor(face)
55 , m_localhostValidator(face)
56 , m_localhopValidator(face)
Junxiao Shif4cfed12018-08-22 23:26:29 +000057 , m_isLocalhopEnabled(false)
Alexander Afanasyev3ecec502014-04-16 13:42:44 -070058{
Yanbiao Licf0db022016-01-29 00:54:25 -080059 registerCommandHandler<ndn::nfd::RibRegisterCommand>("register",
60 bind(&RibManager::registerEntry, this, _2, _3, _4, _5));
61 registerCommandHandler<ndn::nfd::RibUnregisterCommand>("unregister",
62 bind(&RibManager::unregisterEntry, this, _2, _3, _4, _5));
63
64 registerStatusDatasetHandler("list", bind(&RibManager::listEntries, this, _1, _2, _3));
Alexander Afanasyev3ecec502014-04-16 13:42:44 -070065}
66
Junxiao Shif4cfed12018-08-22 23:26:29 +000067void
68RibManager::applyLocalhostConfig(const ConfigSection& section, const std::string& filename)
69{
70 m_localhostValidator.load(section, filename);
71}
72
73void
74RibManager::enableLocalhop(const ConfigSection& section, const std::string& filename)
75{
76 m_localhopValidator.load(section, filename);
77 m_isLocalhopEnabled = true;
78}
79
80void
81RibManager::disableLocalhop()
82{
83 m_isLocalhopEnabled = false;
84}
Vince Lehman26b215c2014-08-17 15:00:41 -050085
Alexander Afanasyev3ecec502014-04-16 13:42:44 -070086void
87RibManager::registerWithNfd()
88{
Junxiao Shif4cfed12018-08-22 23:26:29 +000089 registerTopPrefix(LOCALHOST_TOP_PREFIX);
Alexander Afanasyevb3893c92014-05-15 01:49:54 -070090
Junxiao Shia3295742014-05-16 22:40:10 -070091 if (m_isLocalhopEnabled) {
Junxiao Shif4cfed12018-08-22 23:26:29 +000092 registerTopPrefix(LOCALHOP_TOP_PREFIX);
Junxiao Shia3295742014-05-16 22:40:10 -070093 }
Alexander Afanasyev3ecec502014-04-16 13:42:44 -070094
Alexander Afanasyev89cf5e02014-04-17 12:08:57 -070095 NFD_LOG_INFO("Start monitoring face create/destroy events");
Junxiao Shifbf78342015-01-23 14:46:41 -070096 m_faceMonitor.onNotification.connect(bind(&RibManager::onNotification, this, _1));
Junxiao Shi15b12e72014-08-09 19:56:24 -070097 m_faceMonitor.start();
Vince Lehmancd613c52014-07-30 14:34:49 -050098
Vince Lehman26b215c2014-08-17 15:00:41 -050099 scheduleActiveFaceFetch(ACTIVE_FACE_FETCH_INTERVAL);
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700100}
101
102void
Eric Newberryecc45cb2016-11-08 19:57:12 +0000103RibManager::enableLocalFields()
Yanbiao Licf0db022016-01-29 00:54:25 -0800104{
Eric Newberryecc45cb2016-11-08 19:57:12 +0000105 m_nfdController.start<ndn::nfd::FaceUpdateCommand>(
Junxiao Shi52009042018-09-10 12:33:56 +0000106 ControlParameters().setFlagBit(ndn::nfd::BIT_LOCAL_FIELDS_ENABLED, true),
107 [] (const ControlParameters& res) {
108 NFD_LOG_DEBUG("Local fields enabled");
109 },
110 [] (const ControlResponse& res) {
111 BOOST_THROW_EXCEPTION(Error("Couldn't enable local fields (" + to_string(res.getCode()) +
112 " " + res.getText() + ")"));
113 });
Yanbiao Licf0db022016-01-29 00:54:25 -0800114}
115
116void
Junxiao Shi52009042018-09-10 12:33:56 +0000117RibManager::beginAddRoute(const Name& name, Route route, optional<time::nanoseconds> expires,
118 const std::function<void(RibUpdateResult)>& done)
Yanbiao Licf0db022016-01-29 00:54:25 -0800119{
Junxiao Shi52009042018-09-10 12:33:56 +0000120 if (expires) {
121 if (*expires <= 0_ns) {
122 done(RibUpdateResult::EXPIRED);
123 return;
124 }
125 route.expires = time::steady_clock::now() + *expires;
126 }
127 else if (route.expires) {
128 expires = *route.expires - time::steady_clock::now();
129 if (*expires <= 0_ns) {
130 done(RibUpdateResult::EXPIRED);
131 return;
132 }
133 }
134
135 NFD_LOG_INFO("Adding route " << name << " nexthop=" << route.faceId <<
136 " origin=" << route.origin << " cost=" << route.cost);
137
138 if (expires) {
139 route.setExpirationEvent(scheduler::schedule(
140 *expires, [=] { m_rib.onRouteExpiration(name, route); }));
141 NFD_LOG_TRACE("Scheduled unregistration at: " << *route.expires);
142 }
143
144 m_registeredFaces.insert(route.faceId);
145
146 RibUpdate update;
147 update.setAction(RibUpdate::REGISTER)
148 .setName(name)
149 .setRoute(route);
150 beginRibUpdate(update, done);
Yanbiao Licf0db022016-01-29 00:54:25 -0800151}
152
153void
Junxiao Shi52009042018-09-10 12:33:56 +0000154RibManager::beginRemoveRoute(const Name& name, const Route& route,
155 const std::function<void(RibUpdateResult)>& done)
Yanbiao Licf0db022016-01-29 00:54:25 -0800156{
Junxiao Shi52009042018-09-10 12:33:56 +0000157 NFD_LOG_INFO("Removing route " << name << " nexthop=" << route.faceId <<
158 " origin=" << route.origin);
Yanbiao Licf0db022016-01-29 00:54:25 -0800159
Junxiao Shi52009042018-09-10 12:33:56 +0000160 RibUpdate update;
161 update.setAction(RibUpdate::UNREGISTER)
162 .setName(name)
163 .setRoute(route);
164 beginRibUpdate(update, done);
165}
166
167void
168RibManager::beginRibUpdate(const RibUpdate& update,
169 const std::function<void(RibUpdateResult)>& done)
170{
171 m_rib.beginApplyUpdate(update,
172 [=] {
173 NFD_LOG_DEBUG("RIB update succeeded for " << update);
174 done(RibUpdateResult::OK);
175 },
176 [=] (uint32_t code, const std::string& error) {
177 NFD_LOG_DEBUG("RIB update failed for " << update << " (" << code << " " << error << ")");
178
179 // Since the FIB rejected the update, clean up invalid routes
180 scheduleActiveFaceFetch(1_s);
181
182 done(RibUpdateResult::ERROR);
183 });
Yanbiao Licf0db022016-01-29 00:54:25 -0800184}
185
186void
Yanbiao Licf0db022016-01-29 00:54:25 -0800187RibManager::registerTopPrefix(const Name& topPrefix)
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700188{
Junxiao Shi52009042018-09-10 12:33:56 +0000189 // add FIB nexthop
Yanbiao Licf0db022016-01-29 00:54:25 -0800190 m_nfdController.start<ndn::nfd::FibAddNextHopCommand>(
Junxiao Shi52009042018-09-10 12:33:56 +0000191 ControlParameters().setName(Name(topPrefix).append(MGMT_MODULE_NAME))
192 .setFaceId(0),
193 [=] (const ControlParameters& res) {
194 NFD_LOG_DEBUG("Successfully registered " << topPrefix << " with NFD");
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700195
Junxiao Shi52009042018-09-10 12:33:56 +0000196 // Routes must be inserted into the RIB so route flags can be applied
197 Route route;
198 route.faceId = res.getFaceId();
199 route.origin = ndn::nfd::ROUTE_ORIGIN_APP;
200 route.flags = ndn::nfd::ROUTE_FLAG_CHILD_INHERIT;
201
202 m_rib.insert(topPrefix, route);
203
204 m_registeredFaces.insert(route.faceId);
205 },
206 [=] (const ControlResponse& res) {
207 BOOST_THROW_EXCEPTION(Error("Cannot add FIB entry " + topPrefix.toUri() + " (" +
208 to_string(res.getCode()) + " " + res.getText() + ")"));
209 });
210
211 // add top prefix to the dispatcher without prefix registration
Junxiao Shif4cfed12018-08-22 23:26:29 +0000212 m_dispatcher.addTopPrefix(topPrefix, false);
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700213}
214
215void
Yanbiao Licf0db022016-01-29 00:54:25 -0800216RibManager::registerEntry(const Name& topPrefix, const Interest& interest,
217 ControlParameters parameters,
218 const ndn::mgmt::CommandContinuation& done)
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700219{
Junxiao Shi75306352018-02-01 21:59:44 +0000220 if (parameters.getName().size() > FIB_MAX_DEPTH) {
221 done(ControlResponse(414, "Route prefix cannot exceed " + ndn::to_string(FIB_MAX_DEPTH) +
222 " components"));
223 return;
224 }
225
Yanbiao Licf0db022016-01-29 00:54:25 -0800226 setFaceForSelfRegistration(interest, parameters);
Vince Lehman76c751c2014-11-18 17:36:38 -0600227
228 // Respond since command is valid and authorized
Yanbiao Licf0db022016-01-29 00:54:25 -0800229 done(ControlResponse(200, "Success").setBody(parameters.wireEncode()));
Alexander Afanasyevfb1c8082014-07-17 15:16:15 -0700230
Vince Lehman218be0a2015-01-15 17:25:20 -0600231 Route route;
232 route.faceId = parameters.getFaceId();
233 route.origin = parameters.getOrigin();
234 route.cost = parameters.getCost();
235 route.flags = parameters.getFlags();
Syed Obaid3313a372014-07-01 01:31:33 -0500236
Junxiao Shi52009042018-09-10 12:33:56 +0000237 optional<time::nanoseconds> expires;
Alexander Afanasyevf67cf082014-07-18 16:47:29 -0700238 if (parameters.hasExpirationPeriod() &&
Nick Gordon9fcf1232017-03-10 22:30:20 +0000239 parameters.getExpirationPeriod() != time::milliseconds::max()) {
Junxiao Shi52009042018-09-10 12:33:56 +0000240 expires = time::duration_cast<time::nanoseconds>(parameters.getExpirationPeriod());
Vince Lehman76c751c2014-11-18 17:36:38 -0600241 }
Alexander Afanasyev20d31442014-04-19 17:00:53 -0700242
Junxiao Shi52009042018-09-10 12:33:56 +0000243 beginAddRoute(parameters.getName(), std::move(route), expires, [] (RibUpdateResult) {});
Vince Lehman281ded72014-08-21 12:17:08 -0500244}
245
246void
Yanbiao Licf0db022016-01-29 00:54:25 -0800247RibManager::unregisterEntry(const Name& topPrefix, const Interest& interest,
248 ControlParameters parameters,
249 const ndn::mgmt::CommandContinuation& done)
Alexander Afanasyev20d31442014-04-19 17:00:53 -0700250{
Yanbiao Licf0db022016-01-29 00:54:25 -0800251 setFaceForSelfRegistration(interest, parameters);
Vince Lehman76c751c2014-11-18 17:36:38 -0600252
253 // Respond since command is valid and authorized
Yanbiao Licf0db022016-01-29 00:54:25 -0800254 done(ControlResponse(200, "Success").setBody(parameters.wireEncode()));
Alexander Afanasyevfb1c8082014-07-17 15:16:15 -0700255
Vince Lehman218be0a2015-01-15 17:25:20 -0600256 Route route;
257 route.faceId = parameters.getFaceId();
258 route.origin = parameters.getOrigin();
Alexander Afanasyev20d31442014-04-19 17:00:53 -0700259
Junxiao Shi52009042018-09-10 12:33:56 +0000260 beginRemoveRoute(parameters.getName(), route, [] (RibUpdateResult) {});
Alexander Afanasyev20d31442014-04-19 17:00:53 -0700261}
262
263void
Yanbiao Licf0db022016-01-29 00:54:25 -0800264RibManager::listEntries(const Name& topPrefix, const Interest& interest,
265 ndn::mgmt::StatusDatasetContext& context)
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700266{
Junxiao Shi3f21e582017-05-29 15:26:32 +0000267 auto now = time::steady_clock::now();
268 for (const auto& kv : m_rib) {
269 const RibEntry& entry = *kv.second;
270 ndn::nfd::RibEntry item;
271 item.setName(entry.getName());
272 for (const Route& route : entry.getRoutes()) {
273 ndn::nfd::Route r;
274 r.setFaceId(route.faceId);
275 r.setOrigin(route.origin);
276 r.setCost(route.cost);
277 r.setFlags(route.flags);
278 if (route.expires) {
279 r.setExpirationPeriod(time::duration_cast<time::milliseconds>(*route.expires - now));
280 }
281 item.addRoute(r);
282 }
283 context.append(item.wireEncode());
Vince Lehman76c751c2014-11-18 17:36:38 -0600284 }
Yanbiao Licf0db022016-01-29 00:54:25 -0800285 context.end();
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700286}
287
288void
Yanbiao Licf0db022016-01-29 00:54:25 -0800289RibManager::setFaceForSelfRegistration(const Interest& request, ControlParameters& parameters)
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700290{
Yanbiao Licf0db022016-01-29 00:54:25 -0800291 bool isSelfRegistration = (parameters.getFaceId() == 0);
292 if (isSelfRegistration) {
293 shared_ptr<lp::IncomingFaceIdTag> incomingFaceIdTag = request.getTag<lp::IncomingFaceIdTag>();
294 // NDNLPv2 says "application MUST be prepared to receive a packet without IncomingFaceId field",
295 // but it's fine to assert IncomingFaceId is available, because InternalFace lives inside NFD
296 // and is initialized synchronously with IncomingFaceId field enabled.
297 BOOST_ASSERT(incomingFaceIdTag != nullptr);
298 parameters.setFaceId(*incomingFaceIdTag);
Vince Lehman76c751c2014-11-18 17:36:38 -0600299 }
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700300}
301
Junxiao Shi21738402016-08-19 19:48:00 +0000302ndn::mgmt::Authorization
303RibManager::makeAuthorization(const std::string& verb)
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700304{
Junxiao Shi21738402016-08-19 19:48:00 +0000305 return [this] (const Name& prefix, const Interest& interest,
306 const ndn::mgmt::ControlParameters* params,
307 const ndn::mgmt::AcceptContinuation& accept,
308 const ndn::mgmt::RejectContinuation& reject) {
309 BOOST_ASSERT(params != nullptr);
310 BOOST_ASSERT(typeid(*params) == typeid(ndn::nfd::ControlParameters));
Junxiao Shif4cfed12018-08-22 23:26:29 +0000311 BOOST_ASSERT(prefix == LOCALHOST_TOP_PREFIX || prefix == LOCALHOP_TOP_PREFIX);
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700312
Junxiao Shif4cfed12018-08-22 23:26:29 +0000313 ndn::ValidatorConfig& validator = prefix == LOCALHOST_TOP_PREFIX ?
Junxiao Shi21738402016-08-19 19:48:00 +0000314 m_localhostValidator : m_localhopValidator;
315 validator.validate(interest,
316 bind([&interest, this, accept] { extractRequester(interest, accept); }),
317 bind([reject] { reject(ndn::mgmt::RejectReply::STATUS403); }));
318 };
Vince Lehman26b215c2014-08-17 15:00:41 -0500319}
320
321void
Vince Lehmancd613c52014-07-30 14:34:49 -0500322RibManager::fetchActiveFaces()
323{
324 NFD_LOG_DEBUG("Fetching active faces");
325
Weiwei Liu6e21cdb2016-09-29 15:16:23 -0700326 m_nfdController.fetch<ndn::nfd::FaceDataset>(
327 bind(&RibManager::removeInvalidFaces, this, _1),
328 bind(&RibManager::onFetchActiveFacesFailure, this, _1, _2),
329 ndn::nfd::CommandOptions());
Vince Lehmancd613c52014-07-30 14:34:49 -0500330}
331
332void
Weiwei Liu6e21cdb2016-09-29 15:16:23 -0700333RibManager::onFetchActiveFacesFailure(uint32_t code, const std::string& reason)
Vince Lehmancd613c52014-07-30 14:34:49 -0500334{
Weiwei Liu6e21cdb2016-09-29 15:16:23 -0700335 NFD_LOG_DEBUG("Face Status Dataset request failure " << code << " " << reason);
Yanbiao Licf0db022016-01-29 00:54:25 -0800336 scheduleActiveFaceFetch(ACTIVE_FACE_FETCH_INTERVAL);
337}
338
339void
340RibManager::onFaceDestroyedEvent(uint64_t faceId)
341{
342 m_rib.beginRemoveFace(faceId);
343 m_registeredFaces.erase(faceId);
344}
345
346void
347RibManager::scheduleActiveFaceFetch(const time::seconds& timeToWait)
348{
Davide Pesaventod396b612017-02-20 22:11:50 -0500349 m_activeFaceFetchEvent = scheduler::schedule(timeToWait, [this] { this->fetchActiveFaces(); });
Yanbiao Licf0db022016-01-29 00:54:25 -0800350}
351
352void
Weiwei Liu6e21cdb2016-09-29 15:16:23 -0700353RibManager::removeInvalidFaces(const std::vector<ndn::nfd::FaceStatus>& activeFaces)
Vince Lehmancd613c52014-07-30 14:34:49 -0500354{
Vince Lehman26b215c2014-08-17 15:00:41 -0500355 NFD_LOG_DEBUG("Checking for invalid face registrations");
Vince Lehmancd613c52014-07-30 14:34:49 -0500356
Weiwei Liu6e21cdb2016-09-29 15:16:23 -0700357 FaceIdSet activeFaceIds;
Davide Pesaventod396b612017-02-20 22:11:50 -0500358 for (const auto& faceStatus : activeFaces) {
359 activeFaceIds.insert(faceStatus.getFaceId());
Junxiao Shi78926c92015-02-28 22:56:06 -0700360 }
361
Vince Lehman26b215c2014-08-17 15:00:41 -0500362 // Look for face IDs that were registered but not active to find missed
363 // face destroyed events
Davide Pesaventod396b612017-02-20 22:11:50 -0500364 for (auto faceId : m_registeredFaces) {
Weiwei Liu6e21cdb2016-09-29 15:16:23 -0700365 if (activeFaceIds.count(faceId) == 0) {
Vince Lehman76c751c2014-11-18 17:36:38 -0600366 NFD_LOG_DEBUG("Removing invalid face ID: " << faceId);
Davide Pesaventod396b612017-02-20 22:11:50 -0500367 scheduler::schedule(time::seconds(0), [this, faceId] { this->onFaceDestroyedEvent(faceId); });
Vince Lehman26b215c2014-08-17 15:00:41 -0500368 }
Vince Lehman76c751c2014-11-18 17:36:38 -0600369 }
Vince Lehman26b215c2014-08-17 15:00:41 -0500370
371 // Reschedule the check for future clean up
372 scheduleActiveFaceFetch(ACTIVE_FACE_FETCH_INTERVAL);
Vince Lehmancd613c52014-07-30 14:34:49 -0500373}
374
375void
Davide Pesaventod396b612017-02-20 22:11:50 -0500376RibManager::onNotification(const ndn::nfd::FaceEventNotification& notification)
Vince Lehmancd613c52014-07-30 14:34:49 -0500377{
Yanbiao Licf0db022016-01-29 00:54:25 -0800378 NFD_LOG_TRACE("onNotification: " << notification);
379
380 if (notification.getKind() == ndn::nfd::FACE_EVENT_DESTROYED) {
381 NFD_LOG_DEBUG("Received notification for destroyed faceId: " << notification.getFaceId());
382
383 scheduler::schedule(time::seconds(0),
384 bind(&RibManager::onFaceDestroyedEvent, this, notification.getFaceId()));
385 }
386}
387
Alexander Afanasyev3ecec502014-04-16 13:42:44 -0700388} // namespace rib
389} // namespace nfd