Skip to content

Commit def7ad4

Browse files
RichardWu-Hebutstcheng
authored andcommitted
[MirrorOrch]: Init the next hop ip with 0 instead of default constructor (#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 <[email protected]>
1 parent db251c3 commit def7ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orchagent/mirrororch.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ void MirrorOrch::updateNextHop(const NextHopUpdate& update)
786786
}
787787
else
788788
{
789-
session.nexthopInfo.nexthop = IpAddress();
789+
session.nexthopInfo.nexthop = IpAddress(0);
790790
}
791791

792792
// Resolve the neighbor of the new next hop

0 commit comments

Comments
 (0)