Comment 6 for bug 1466113

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/11750
Committed: http://github.org/Juniper/contrail-controller/commit/56541328c761eaf037bc234a0ddff5723c3f4faf
Submitter: Zuul
Branch: R2.20

commit 56541328c761eaf037bc234a0ddff5723c3f4faf
Author: Praveen K V <email address hidden>
Date: Wed Jun 17 19:57:04 2015 +0530

Fix tunnel-dest IP being set to 0.0.0.0

When OVS Peer adds routes, it does not set the server_ip_ field in the
AgentPath. Further when route is rebaked, the AgentPath module uses the
server_ip_ field to create the NH. This can result in NH being created
with dest-ip=0.0.0.0

Fix:
1. Modified ChangeNH() to pick the dest-ip and store in server_ip_ field of
AgentPath.

Additional changes:
1. server_ip_ was a misnomer. Its renamed to tunnel_dest_
2. UT to verify the scenario

Change-Id: I2e2cf4c90a0c56765ab5b3313fda421c329a4b2d
Closes-Bug: #1466113