OpenSDN source code
inet_table.cc
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
3  * Copyright Contributors to the OpenSDN project
4  */
5 
6 #include "bgp/inet/inet_table.h"
7 
8 #include <boost/foreach.hpp>
9 
10 #include "base/task_annotations.h"
11 #include "bgp/bgp_server.h"
12 #include "bgp/bgp_update.h"
19 
20 using std::unique_ptr;
21 using std::string;
22 
23 InetTable::InetTable(DB *db, const string &name)
24  : BgpTable(db, name) {
25  family_ = (name.at(name.length()-1) == '3') ?
27 }
28 
29 size_t InetTable::HashFunction(const Ip4Prefix &prefix) {
30  return boost::hash_value(prefix.ip4_addr().to_ulong());
31 }
32 
33 unique_ptr<DBEntry> InetTable::AllocEntry(const DBRequestKey *key) const {
34  const RequestKey *pfxkey = static_cast<const RequestKey *>(key);
35  return unique_ptr<DBEntry>(new InetRoute(pfxkey->prefix));
36 }
37 
38 unique_ptr<DBEntry> InetTable::AllocEntryStr(const string &key_str) const {
39  Ip4Prefix prefix = Ip4Prefix::FromString(key_str);
40  return unique_ptr<DBEntry>(new InetRoute(prefix));
41 }
42 
43 size_t InetTable::Hash(const DBEntry *entry) const {
44  const InetRoute *rt_entry = static_cast<const InetRoute *>(entry);
45  size_t value = HashFunction(rt_entry->GetPrefix());
46  return value % DB::PartitionCount();
47 }
48 
49 size_t InetTable::Hash(const DBRequestKey *key) const {
50  const RequestKey *rkey = static_cast<const RequestKey *>(key);
51  size_t value = HashFunction(rkey->prefix);
52  return value % DB::PartitionCount();
53 }
54 
56  const DBRequestKey *prefix) {
57  const RequestKey *pfxkey = static_cast<const RequestKey *>(prefix);
58  InetRoute rt_key(pfxkey->prefix);
59  return static_cast<BgpRoute *>(rtp->Find(&rt_key));
60 }
61 
62 DBTableBase *InetTable::CreateTable(DB *db, const string &name) {
63  InetTable *table = new InetTable(db, name);
64  table->Init();
65  return table;
66 }
67 
69  BgpTable *src_table, BgpRoute *src_rt, const BgpPath *path,
70  ExtCommunityPtr community) {
71  InetRoute *inet= dynamic_cast<InetRoute *> (src_rt);
72 
73  boost::scoped_ptr<Ip4Prefix> inet_prefix;
75 
76  if (inet) {
77  inet_prefix.reset(new Ip4Prefix(inet->GetPrefix().ip4_addr(),
78  inet->GetPrefix().prefixlen()));
79  } else {
80  InetVpnRoute *inetvpn = dynamic_cast<InetVpnRoute *> (src_rt);
81  assert(inetvpn);
82  rd = inetvpn->GetPrefix().route_distinguisher();
83  inet_prefix.reset(new Ip4Prefix(inetvpn->GetPrefix().addr(),
84  inetvpn->GetPrefix().prefixlen()));
85  }
86 
87  InetRoute rt_key(*inet_prefix);
88  DBTablePartition *rtp =
89  static_cast<DBTablePartition *>(GetTablePartition(&rt_key));
90  BgpRoute *dest_route = static_cast<BgpRoute *>(rtp->Find(&rt_key));
91  if (dest_route == NULL) {
92  dest_route = new InetRoute(rt_key.GetPrefix());
93  rtp->Add(dest_route);
94  } else {
95  dest_route->ClearDelete();
96  }
97 
98  BgpAttrDB *attr_db = server->attr_db();
99  BgpAttrPtr new_attr = attr_db->ReplaceExtCommunityAndLocate(path->GetAttr(),
100  community);
101 
102  // Set the RD attr if route is replicated from vpn table
103  if (!inet) {
104  new_attr = attr_db->ReplaceSourceRdAndLocate(new_attr.get(), rd);
105  }
106 
107  // Check whether there's already a path with the given peer and path id.
108  BgpPath *dest_path = dest_route->FindSecondaryPath(src_rt,
109  path->GetSource(), path->GetPeer(),
110  path->GetPathId());
111  uint32_t prev_flags = 0 , prev_label = 0;
112  const BgpAttr *prev_attr = NULL;
113  if (dest_path != NULL) {
114  prev_flags = dest_path->GetFlags();
115  prev_label = dest_path->GetLabel();
116  prev_attr = dest_path->GetOriginalAttr();
117  if ((new_attr != prev_attr) ||
118  (path->GetFlags() != prev_flags) ||
119  (path->GetLabel() != prev_label)) {
120  // Update Attributes and notify (if needed)
121  if (dest_path->NeedsResolution()) {
122  path_resolver()->StopPathResolution(rtp->index(), dest_path);
123  }
124  assert(dest_route->RemoveSecondaryPath(src_rt, path->GetSource(),
125  path->GetPeer(), path->GetPathId()));
126  } else {
127  return dest_route;
128  }
129  }
130 
131  BgpSecondaryPath *replicated_path =
132  new BgpSecondaryPath(path->GetPeer(), path->GetPathId(),
133  path->GetSource(), new_attr, path->GetFlags(), path->GetLabel());
134  replicated_path->SetReplicateInfo(src_table, src_rt);
135 
136  // For VPN to VRF replication, start path resolution if fast convergence is
137  // enabled and update path flag to indicate need for resolution.
138  if (!inet && (server->IsNextHopCheckEnabled()) &&
139  (replicated_path->GetSource() == BgpPath::BGP_XMPP)) {
140  Address::Family family = replicated_path->GetAttr()->nexthop_family();
142  RoutingInstance *master_ri = mgr->GetDefaultRoutingInstance();
143  BgpTable *table = master_ri->GetTable(family);
144  replicated_path->SetResolveNextHop();
145  path_resolver()->StartPathResolution(dest_route, replicated_path,
146  table);
147  }
148 
149  dest_route->InsertPath(replicated_path);
150 
151  // BgpRoute::InsertPath() triggers routing policies processing, which may
152  // change the flags (namely, RoutingPolicyReject). So we check the flags
153  // once again and only notify the partition if the new path is still
154  // different after routing policies were applied.
155  bool notify = true;
156  if (dest_path != NULL) {
157  if ((replicated_path->GetOriginalAttr() == prev_attr) &&
158  (replicated_path->GetFlags() == prev_flags) &&
159  (replicated_path->GetLabel() == prev_label))
160  notify = false;
161  }
162 
163  // Notify the route even if the best path may not have changed. For XMPP
164  // peers, we support sending multiple ECMP next-hops for a single route.
165  //
166  // TODO(ananth): Can be optimized for changes that does not result in
167  // any change to ECMP list.
168  if (notify)
169  rtp->Notify(dest_route);
170 
171  return dest_route;
172 }
173 
174 bool InetTable::Export(RibOut *ribout, Route *route, const RibPeerSet &peerset,
175  UpdateInfoSList &uinfo_slist) {
176  BgpRoute *bgp_route = static_cast<BgpRoute *>(route);
177 
178  UpdateInfo *uinfo = GetUpdateInfo(ribout, bgp_route, peerset);
179  if (!uinfo)
180  return false;
181 
182  if (ribout->ExportPolicy().encoding == RibExportPolicy::BGP) {
183  BgpAttrDB *attr_db = routing_instance()->server()->attr_db();
185 
186  // Strip OriginVnPath.
187  if (uinfo->roattr.attr()->origin_vn_path()) {
188  BgpAttrPtr new_attr = attr_db->ReplaceOriginVnPathAndLocate(
189  uinfo->roattr.attr(), NULL);
190  uinfo->roattr.set_attr(this, new_attr);
191  }
192  }
193  uinfo_slist->push_front(*uinfo);
194 
195  return true;
196 }
197 
198 // Strip all extended-communities except OriginVN.
200  ExtCommunityPtr ext_commp = roattr->attr()->ext_community();
201  if (!ext_commp)
202  return;
203 
204  // Retrieve any origin_vn already present.
205  ExtCommunity::ExtCommunityValue const *origin_vnp = NULL;
206  BOOST_FOREACH(const ExtCommunity::ExtCommunityValue &comm,
207  ext_commp->communities()) {
208  if (!ExtCommunity::is_origin_vn(comm))
209  continue;
210  origin_vnp = &comm;
211  break;
212  }
213 
214  BgpAttrDB *attr_db = routing_instance()->server()->attr_db();
215 
216  // If there is no origin-vn, then remove all other extended communities.
217  if (!origin_vnp) {
218  BgpAttrPtr new_attr = attr_db->ReplaceExtCommunityAndLocate(
219  roattr->attr(), NULL);
220  roattr->set_attr(this, new_attr);
221  return;
222  }
223 
224  // Remove all communities other than OriginVN by replacing all of the
225  // extended-community with just OriginVN.
226  if (ext_commp->communities().size() > 1) {
228  list.push_back(*origin_vnp);
229  ExtCommunityDB *extcomm_db =
231  ext_commp = extcomm_db->AppendAndLocate(NULL, list);
232  BgpAttrPtr new_attr = attr_db->ReplaceExtCommunityAndLocate(
233  roattr->attr(), ext_commp);
234  roattr->set_attr(this, new_attr);
235  }
236 }
237 
238 // Attach OriginVN extended-community from inetvpn path attribute if present
239 // into inet route path attribute.
241  const BgpAttrPtr inet_attrp) {
243 
244  // Check if origin-vn path attribute in inet.0 table path is identical to
245  // what is in inetvpn table path.
246  ExtCommunity::ExtCommunityValue const *inetvpn_rt_origin_vn = NULL;
247  if (inetvpn_attrp && inetvpn_attrp->ext_community()) {
248  BOOST_FOREACH(const ExtCommunity::ExtCommunityValue &comm,
249  inetvpn_attrp->ext_community()->communities()) {
250  if (!ExtCommunity::is_origin_vn(comm))
251  continue;
252  inetvpn_rt_origin_vn = &comm;
253  break;
254  }
255  }
256 
257  ExtCommunity::ExtCommunityValue const *inet_rt_origin_vn = NULL;
258  if (inet_attrp && inet_attrp->ext_community()) {
259  BOOST_FOREACH(const ExtCommunity::ExtCommunityValue &comm,
260  inet_attrp->ext_community()->communities()) {
261  if (!ExtCommunity::is_origin_vn(comm))
262  continue;
263  inet_rt_origin_vn = &comm;
264  break;
265  }
266  }
267 
268  // Ignore if there is no change.
269  if (inetvpn_rt_origin_vn == inet_rt_origin_vn)
270  return inet_attrp;
271 
272  // Update/Delete inet route attributes with updated OriginVn community.
273  ExtCommunityPtr new_ext_community;
274  if (!inetvpn_rt_origin_vn) {
275  new_ext_community = server->extcomm_db()->RemoveOriginVnAndLocate(
276  inet_attrp->ext_community());
277  } else {
278  new_ext_community = server->extcomm_db()->ReplaceOriginVnAndLocate(
279  inet_attrp->ext_community(), *inetvpn_rt_origin_vn);
280  }
281 
282  return server->attr_db()->ReplaceExtCommunityAndLocate(inet_attrp.get(),
283  new_ext_community);
284 }
285 
287  BgpAttrPtr inet_attrp, const IPeer *peer) {
288  CHECK_CONCURRENCY("db::DBTable");
289 
290  BgpAttrPtr attrp = GetFabricAttributes(rt, inet_attrp, peer);
291  return GetMvpnAttributes(attrp);
292 }
293 
296  if (server->mvpn_ipv4_enable()) {
298  routing_instance()->index());
299  ExtCommunityPtr ext =
301  attrp->ext_community(), vit.GetExtCommunity());
302  SourceAs sas(server->autonomous_system(), 0);
303  ext = server->extcomm_db()->ReplaceSourceASAndLocate(ext.get(),
304  sas.GetExtCommunity());
305  BgpAttrPtr new_attr =
306  server->attr_db()->ReplaceExtCommunityAndLocate(attrp.get(), ext);
307  return new_attr;
308  }
309  return attrp;
310 }
311 
312 // Given an inet prefix, update OriginVN with corresponding inetvpn route's
313 // path attribute.
315  BgpAttrPtr inet_attrp, const IPeer *peer) {
316 
317  if (!routing_instance()->IsMasterRoutingInstance())
318  return inet_attrp;
319  if (!inet_attrp || inet_attrp->source_rd().IsZero())
320  return inet_attrp;
321 
322  const InetRoute *inet_rt = dynamic_cast<InetRoute *>(rt);
323  const Ip4Prefix inet_prefix = inet_rt->GetPrefix();
324  RequestKey inet_rt_key(inet_prefix, NULL);
325  DBTablePartition *inet_partition = dynamic_cast<DBTablePartition *>(
326  GetTablePartition(&inet_rt_key));
327 
328  InetVpnTable *inetvpn_table = dynamic_cast<InetVpnTable *>(
330  assert(inetvpn_table);
331  InetVpnPrefix inetvpn_prefix(inet_attrp->source_rd(),
332  inet_prefix.ip4_addr(),
333  inet_prefix.prefixlen());
334  InetVpnTable::RequestKey inetvpn_rt_key(inetvpn_prefix, NULL);
335  DBTablePartition *inetvpn_partition = dynamic_cast<DBTablePartition *>(
336  inetvpn_table->GetTablePartition(&inetvpn_rt_key));
337 
338  // Assert that the partition indicies are identical. This is a MUST
339  // requirement as we need to peek into tables across different families.
340  assert(inet_partition->index() == inetvpn_partition->index());
341  InetVpnRoute *inetvpn_route = dynamic_cast<InetVpnRoute *>(
342  inetvpn_table->TableFind(inetvpn_partition, &inetvpn_rt_key));
343  if (!inetvpn_route)
344  return inet_attrp;
345  BgpPath *inetvpn_path = inetvpn_route->FindPath(peer, true);
346  if (!inetvpn_path)
347  return inet_attrp;
348  return UpdateAttributes(inetvpn_path->GetAttr(), inet_attrp);
349 }
350 
351 // Update inet route path attributes with OriginVN from corresponding inetvpn
352 // route path attribute.
353 void InetTable::UpdateRoute(const InetVpnPrefix &inetvpn_prefix,
354  const IPeer *peer, BgpAttrPtr inetvpn_attrp) {
355  CHECK_CONCURRENCY("db::DBTable");
356  assert(routing_instance()->IsMasterRoutingInstance());
357 
358  // Check if a route is present in inet.0 table for this prefix.
359  Ip4Prefix inet_prefix(inetvpn_prefix.addr(), inetvpn_prefix.prefixlen());
360  InetTable::RequestKey inet_rt_key(inet_prefix, NULL);
361  DBTablePartition *inet_partition = dynamic_cast<DBTablePartition *>(
362  GetTablePartition(&inet_rt_key));
363 
364  InetVpnTable *inetvpn_table = dynamic_cast<InetVpnTable *>(
366  assert(inetvpn_table);
367  InetVpnTable::RequestKey inetvpn_rt_key(inetvpn_prefix, NULL);
368  DBTablePartition *inetvpn_partition =
369  static_cast<DBTablePartition *>(inetvpn_table->GetTablePartition(
370  &inetvpn_rt_key));
371  assert(inet_partition->index() == inetvpn_partition->index());
372 
373  InetRoute *inet_route = dynamic_cast<InetRoute *>(
374  TableFind(inet_partition, &inet_rt_key));
375  if (!inet_route)
376  return;
377 
378  BgpPath *inet_path = inet_route->FindPath(peer);
379  if (!inet_path)
380  return;
381  BgpAttrPtr inet_attrp = inet_path->GetAttr();
382  if (!inet_attrp)
383  return;
384 
385  // Bail if the RDs do not match.
386  if (!(inet_attrp->source_rd() == inetvpn_prefix.route_distinguisher())) {
387  return;
388  }
389  BgpAttrPtr new_inet_attrp = UpdateAttributes(inetvpn_attrp, inet_attrp);
390  if (new_inet_attrp == inet_attrp)
391  return;
392 
393  // Update route with OriginVN path attribute.
394  inet_path->SetAttr(new_inet_attrp, inet_path->GetOriginalAttr());
395  inet_route->Notify();
396 }
397 
399  if (routing_instance()->IsMasterRoutingInstance())
400  return NULL;
401  return (new PathResolver(this));
402 }
403 
404 static void RegisterFactory() {
407 }
408 
std::size_t hash_value(BgpAttr const &attr)
Definition: bgp_attr.cc:1295
boost::intrusive_ptr< const BgpAttr > BgpAttrPtr
Definition: bgp_attr.h:999
Family
Definition: address.h:25
@ INET
Definition: address.h:27
@ INETVPN
Definition: address.h:29
@ INETMPLS
Definition: address.h:35
BgpAttrPtr ReplaceExtCommunityAndLocate(const BgpAttr *attr, ExtCommunityPtr extcomm)
Definition: bgp_attr.cc:1367
BgpAttrPtr ReplaceSourceRdAndLocate(const BgpAttr *attr, const RouteDistinguisher &source_rd)
Definition: bgp_attr.cc:1407
BgpAttrPtr ReplaceOriginVnPathAndLocate(const BgpAttr *attr, OriginVnPathPtr ovnpath)
Definition: bgp_attr.cc:1383
const OriginVnPath * origin_vn_path() const
Definition: bgp_attr.h:922
const ExtCommunity * ext_community() const
Definition: bgp_attr.h:918
Address::Family nexthop_family() const
Definition: bgp_attr.cc:1159
uint32_t GetLabel() const
Definition: bgp_path.h:90
void SetAttr(const BgpAttrPtr attr, const BgpAttrPtr original_attr)
Definition: bgp_path.h:83
uint32_t GetFlags() const
Definition: bgp_path.h:101
IPeer * GetPeer()
Definition: bgp_path.h:77
void SetResolveNextHop()
Definition: bgp_path.h:130
const uint32_t GetPathId() const
Definition: bgp_path.h:79
bool NeedsResolution() const
Definition: bgp_path.h:136
@ BGP_XMPP
Definition: bgp_path.h:40
const BgpAttr * GetAttr() const
Definition: bgp_path.h:88
PathSource GetSource() const
Definition: bgp_path.h:104
const BgpAttr * GetOriginalAttr() const
Definition: bgp_path.h:89
const BgpPath * FindPath(BgpPath::PathSource src) const
Definition: bgp_route.cc:147
bool RemoveSecondaryPath(const BgpRoute *src_rt, BgpPath::PathSource src, const IPeer *peer, uint32_t path_id)
Definition: bgp_route.cc:399
BgpPath * FindSecondaryPath(BgpRoute *src_rt, BgpPath::PathSource src, const IPeer *peer, uint32_t path_id)
Definition: bgp_route.cc:374
void InsertPath(BgpPath *path)
Definition: bgp_route.cc:62
void SetReplicateInfo(const BgpTable *table, const BgpRoute *rt)
Definition: bgp_path.h:173
ExtCommunityDB * extcomm_db()
Definition: bgp_server.h:194
RoutingInstanceMgr * routing_instance_mgr()
Definition: bgp_server.h:107
uint32_t bgp_identifier() const
Definition: bgp_server.h:216
as_t autonomous_system() const
Definition: bgp_server.h:213
bool mvpn_ipv4_enable() const
Definition: bgp_server.h:311
bool IsNextHopCheckEnabled() const
Definition: bgp_server.cc:699
BgpAttrDB * attr_db()
Definition: bgp_server.h:188
BgpServer * server()
Definition: bgp_table.cc:88
RoutingInstance * routing_instance()
Definition: bgp_table.h:148
UpdateInfo * GetUpdateInfo(RibOut *ribout, BgpRoute *route, const RibPeerSet &peerset)
Definition: bgp_table.cc:582
PathResolver * path_resolver()
Definition: bgp_table.h:153
void Notify()
Definition: db_entry.cc:128
void ClearDelete()
Definition: db_entry.h:48
const std::string & name() const
Definition: db_table.h:111
void Notify(DBEntryBase *entry)
virtual void Add(DBEntry *entry)
DBEntry * Find(const DBEntry *entry)
void Init()
Definition: db_table.cc:414
virtual DBTablePartBase * GetTablePartition(const DBRequestKey *key)
Definition: db_table.cc:463
Definition: db.h:25
static void RegisterFactory(const std::string &prefix, CreateFunction create_fn)
Definition: db.cc:24
static int PartitionCount()
Definition: db.cc:32
ExtCommunityPtr AppendAndLocate(const ExtCommunity *src, const ExtCommunity::ExtCommunityList &list)
Definition: community.cc:766
ExtCommunityPtr ReplaceVrfRouteImportAndLocate(const ExtCommunity *src, const ExtCommunity::ExtCommunityValue &vit)
Definition: community.cc:926
ExtCommunityPtr ReplaceSourceASAndLocate(const ExtCommunity *src, const ExtCommunity::ExtCommunityValue &sas)
Definition: community.cc:898
ExtCommunityPtr ReplaceOriginVnAndLocate(const ExtCommunity *src, const ExtCommunity::ExtCommunityValue &origin_vn)
Definition: community.cc:954
ExtCommunityPtr RemoveOriginVnAndLocate(const ExtCommunity *src)
Definition: community.cc:941
std::vector< ExtCommunityValue > ExtCommunityList
Definition: community.h:156
boost::array< uint8_t, 8 > ExtCommunityValue
Definition: community.h:155
static bool is_origin_vn(const ExtCommunityValue &val)
Definition: community.h:196
Definition: ipeer.h:187
const Ip4Prefix & GetPrefix() const
Definition: inet_route.h:71
void UpdateExtendedCommunity(RibOutAttr *roattr)
Definition: inet_table.cc:199
virtual std::unique_ptr< DBEntry > AllocEntryStr(const std::string &key) const
Definition: inet_table.cc:38
static DBTableBase * CreateTable(DB *db, const std::string &name)
Definition: inet_table.cc:62
InetTable(DB *db, const std::string &name)
Definition: inet_table.cc:23
virtual size_t Hash(const DBEntry *entry) const
Definition: inet_table.cc:43
virtual PathResolver * CreatePathResolver()
Definition: inet_table.cc:398
virtual bool Export(RibOut *ribout, Route *route, const RibPeerSet &peerset, UpdateInfoSList &info_slist)
Definition: inet_table.cc:174
BgpAttrPtr UpdateAttributes(const BgpAttrPtr inetvpn_attrp, const BgpAttrPtr inet_attrp)
Definition: inet_table.cc:240
static size_t HashFunction(const Ip4Prefix &addr)
Definition: inet_table.cc:29
Address::Family family_
Definition: inet_table.h:72
BgpAttrPtr GetMvpnAttributes(BgpAttrPtr attrp)
Definition: inet_table.cc:294
virtual BgpRoute * TableFind(DBTablePartition *rtp, const DBRequestKey *prefix)
Definition: inet_table.cc:55
virtual std::unique_ptr< DBEntry > AllocEntry(const DBRequestKey *key) const
Definition: inet_table.cc:33
virtual Address::Family family() const
Definition: inet_table.h:38
void UpdateRoute(const InetVpnPrefix &inetvpn_prefix, const IPeer *peer, BgpAttrPtr inetvpn_attrp)
Definition: inet_table.cc:353
virtual BgpAttrPtr GetAttributes(BgpRoute *rt, BgpAttrPtr attrp, const IPeer *peer)
Definition: inet_table.cc:286
BgpAttrPtr GetFabricAttributes(BgpRoute *rt, BgpAttrPtr attrp, const IPeer *peer)
Definition: inet_table.cc:314
BgpRoute * RouteReplicate(BgpServer *server, BgpTable *src_tbl, BgpRoute *src_rt, const BgpPath *path, ExtCommunityPtr ptr)
Definition: inet_table.cc:68
int prefixlen() const
const RouteDistinguisher & route_distinguisher() const
Ip4Address addr() const
const InetVpnPrefix & GetPrefix() const
Definition: inetvpn_route.h:28
virtual BgpRoute * TableFind(DBTablePartition *rtp, const DBRequestKey *prefix)
int prefixlen() const
Definition: inet_route.h:28
Ip4Address ip4_addr() const
Definition: inet_route.h:26
static Ip4Prefix FromString(const std::string &str, boost::system::error_code *errorp=NULL)
Definition: inet_route.cc:85
void StopPathResolution(int part_id, const BgpPath *path)
void StartPathResolution(BgpRoute *route, const BgpPath *path, BgpTable *nh_table=NULL)
const BgpAttr * attr() const
Definition: bgp_ribout.h:99
void set_attr(const BgpTable *table, const BgpAttrPtr &attrp)
Definition: bgp_ribout.h:100
const RibExportPolicy & ExportPolicy() const
Definition: bgp_ribout.h:310
Definition: route.h:15
RoutingInstance * GetDefaultRoutingInstance()
BgpServer * server()
BgpTable * GetTable(Address::Family fmly)
const bytes_type & GetExtCommunity() const
Definition: source_as.h:45
const bytes_type & GetExtCommunity() const
boost::intrusive_ptr< const ExtCommunity > ExtCommunityPtr
Definition: community.h:451
MODULE_INITIALIZER(RegisterFactory)
static void RegisterFactory()
Definition: inet_table.cc:404
RibOutAttr roattr
Definition: bgp_update.h:101
#define CHECK_CONCURRENCY(...)