Skip to content

Commit

Permalink
Parse label from PmsiTunnel for ingress and assisted replication
Browse files Browse the repository at this point in the history
When parsing EVPN Type 3 routes the label is populated only if the
PmsiTunnel type is IngressReplication.  This causes problems when
handling Type 3 routes corresponding to Tor-Agent since these use
a different tunnel type.

Change-Id: Icb8fd36a511483bbaef278f35da3dd45dbcf5e56
Closes-Bug: 1451699
  • Loading branch information
Nischal Sheth committed May 7, 2015
1 parent c5d42f8 commit 777cc6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bgp/evpn/evpn_route.cc
Expand Up @@ -170,7 +170,9 @@ int EvpnPrefix::FromProtoPrefix(BgpServer *server,
prefix->ReadIpAddress(proto_prefix, ip_offset, ip_size);
const PmsiTunnel *pmsi_tunnel = attr ? attr->pmsi_tunnel() : NULL;
if (pmsi_tunnel &&
pmsi_tunnel->tunnel_type == PmsiTunnelSpec::IngressReplication) {
(pmsi_tunnel->tunnel_type == PmsiTunnelSpec::IngressReplication ||
pmsi_tunnel->tunnel_type ==
PmsiTunnelSpec::AssistedReplicationContrail)) {
*label = pmsi_tunnel->label;
}
break;
Expand Down

0 comments on commit 777cc6d

Please sign in to comment.