Skip to content

Commit cdea5e9

Browse files
authored
Fix next hop compilation (#2025)
*Fixed compilation of SWSS following last 2 commits
1 parent 37c197d commit cdea5e9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

orchagent/nexthopgroupkey.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class NextHopGroupKey
2121
}
2222

2323
/* ip_string|if_alias|vni|router_mac separated by ',' */
24-
NextHopGroupKey(const std::string &nexthops, bool overlay_nh, bool srv6_nh)
24+
NextHopGroupKey(const std::string &nexthops, bool overlay_nh, bool srv6_nh = false)
2525
{
2626
if (overlay_nh)
2727
{

orchagent/nexthopkey.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ struct NextHopKey
6363
}
6464
weight = 0;
6565
}
66-
NextHopKey(const std::string &str, bool overlay_nh, bool srv6_nh)
66+
NextHopKey(const std::string &str, bool overlay_nh, bool srv6_nh = false)
6767
{
6868
if (str.find(NHG_DELIMITER) != string::npos)
6969
{

0 commit comments

Comments
 (0)