Skip to content

Commit

Permalink
Fix next hop compilation (#2025)
Browse files Browse the repository at this point in the history
*Fixed compilation of SWSS following last 2 commits
  • Loading branch information
TACappleman authored Nov 12, 2021
1 parent 37c197d commit cdea5e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orchagent/nexthopgroupkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class NextHopGroupKey
}

/* ip_string|if_alias|vni|router_mac separated by ',' */
NextHopGroupKey(const std::string &nexthops, bool overlay_nh, bool srv6_nh)
NextHopGroupKey(const std::string &nexthops, bool overlay_nh, bool srv6_nh = false)
{
if (overlay_nh)
{
Expand Down
2 changes: 1 addition & 1 deletion orchagent/nexthopkey.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ struct NextHopKey
}
weight = 0;
}
NextHopKey(const std::string &str, bool overlay_nh, bool srv6_nh)
NextHopKey(const std::string &str, bool overlay_nh, bool srv6_nh = false)
{
if (str.find(NHG_DELIMITER) != string::npos)
{
Expand Down

0 comments on commit cdea5e9

Please sign in to comment.