Skip to content

Commit

Permalink
Further progress on evpn type 5 route support
Browse files Browse the repository at this point in the history
- Add path replication rules for type 5 routes
- Add unit tests for type 5 routes
- Schema change for xmpp unicast routes to include vni and mac
- Modify xmpp receive code to add/delete inet/inet6 and evpn
type 5 routes for inet/inet6 prefixes
- Disable xmpp code to add/delete type 5 routes for now

Change-Id: Ida92aab4a0f8c47d38ef330fdf99697429e2bc63
Partial-Bug: 1636654
  • Loading branch information
Nischal Sheth committed Nov 8, 2016
1 parent 44a39c2 commit 1d52154
Show file tree
Hide file tree
Showing 6 changed files with 1,027 additions and 297 deletions.
4 changes: 4 additions & 0 deletions src/bgp/bgp_route.cc
Expand Up @@ -12,6 +12,7 @@
#include "bgp/extended-community/esi_label.h"
#include "bgp/extended-community/load_balance.h"
#include "bgp/extended-community/mac_mobility.h"
#include "bgp/extended-community/router_mac.h"
#include "bgp/extended-community/site_of_origin.h"
#include "bgp/origin-vn/origin_vn.h"
#include "bgp/routing-instance/routepath_replicator.h"
Expand Down Expand Up @@ -356,6 +357,9 @@ static void FillRoutePathExtCommunityInfo(const BgpTable *table,
MacMobility mm(*it);
communities.push_back(mm.ToString());
show_path->set_sequence_no(mm.ToString());
} else if (ExtCommunity::is_router_mac(*it)) {
RouterMac router_mac(*it);
communities.push_back(router_mac.ToString());
} else if (ExtCommunity::is_origin_vn(*it)) {
OriginVn origin_vn(*it);
communities.push_back(origin_vn.ToString());
Expand Down

0 comments on commit 1d52154

Please sign in to comment.