Skip to content

Commit

Permalink
Fix NHG key with weight overlay flag. (sonic-net#1773)
Browse files Browse the repository at this point in the history
Reset m_overlay_nexthops to false for NHG key with weights
  • Loading branch information
caizhenghui-juniper authored Jun 17, 2021
1 parent 6627140 commit e79cd50
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions orchagent/nexthopgroupkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class NextHopGroupKey

NextHopGroupKey(const std::string &nexthops, const std::string &weights)
{
m_overlay_nexthops = false;
std::vector<std::string> nhv = tokenize(nexthops, NHG_DELIMITER);
std::vector<std::string> wtv = tokenize(weights, NHG_DELIMITER);
for (uint32_t i = 0; i < nhv.size(); i++)
Expand Down

0 comments on commit e79cd50

Please sign in to comment.