Skip to content

Commit

Permalink
[MirrorOrch]: Init the next hop ip with 0 instead of default construc…
Browse files Browse the repository at this point in the history
…tor (sonic-net#953)

    Otherwise, in the getgetNeighborInfo function, it will check whether
    the nexthop is zero, but it will return false according to
    IpAddress::isZero(), then it will try to query the
    neighbor orch about this invalid ip address.

Signed-off-by: Richard Wu <wutong23@baidu.com>
  • Loading branch information
RichardWu-Hebut authored and stcheng committed Jun 27, 2019
1 parent db251c3 commit def7ad4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion orchagent/mirrororch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ void MirrorOrch::updateNextHop(const NextHopUpdate& update)
}
else
{
session.nexthopInfo.nexthop = IpAddress();
session.nexthopInfo.nexthop = IpAddress(0);
}

// Resolve the neighbor of the new next hop
Expand Down

0 comments on commit def7ad4

Please sign in to comment.