Skip to content

Commit

Permalink
MPLS gre never get picked up for remote route.
Browse files Browse the repository at this point in the history
Since there is a change in interpretation of TunnelEncapType, agent failed to
identify GRE. Solution is to use the modified encap type name.
https://bugs.launchpad.net/juniperopenstack/+bug/1588554

Change-Id: I36540574d46f29387f72ff458e9d4b758e4efada
Closes-bug: #1605545
  • Loading branch information
manishsing committed Jul 22, 2016
1 parent 77418b2 commit 9083e0b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/vnsw/agent/controller/controller_peer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,8 @@ GetEnetTypeBitmap(const EnetTunnelEncapsulationListType &encap) {
iter != encap.end(); iter++) {
TunnelEncapType::Encap encap =
TunnelEncapType::TunnelEncapFromString(*iter);
if (encap == TunnelEncapType::MPLS_O_GRE)
if ((encap == TunnelEncapType::GRE) ||
(encap == TunnelEncapType::MPLS_O_GRE))
bmap |= (1 << TunnelType::MPLS_GRE);
if (encap == TunnelEncapType::MPLS_O_UDP)
bmap |= (1 << TunnelType::MPLS_UDP);
Expand All @@ -313,7 +314,8 @@ GetTypeBitmap(const TunnelEncapsulationListType &encap) {
iter != encap.end(); iter++) {
TunnelEncapType::Encap encap =
TunnelEncapType::TunnelEncapFromString(*iter);
if (encap == TunnelEncapType::MPLS_O_GRE)
if ((encap == TunnelEncapType::GRE) ||
(encap == TunnelEncapType::MPLS_O_GRE))
bmap |= (1 << TunnelType::MPLS_GRE);
if (encap == TunnelEncapType::MPLS_O_UDP)
bmap |= (1 << TunnelType::MPLS_UDP);
Expand All @@ -327,7 +329,8 @@ GetMcastTypeBitmap(const McastTunnelEncapsulationListType &encap) {
iter != encap.end(); iter++) {
TunnelEncapType::Encap encap =
TunnelEncapType::TunnelEncapFromString(*iter);
if (encap == TunnelEncapType::MPLS_O_GRE)
if ((encap == TunnelEncapType::GRE) ||
(encap == TunnelEncapType::MPLS_O_GRE))
bmap |= (1 << TunnelType::MPLS_GRE);
if (encap == TunnelEncapType::MPLS_O_UDP)
bmap |= (1 << TunnelType::MPLS_UDP);
Expand Down

0 comments on commit 9083e0b

Please sign in to comment.