diff --git a/orchagent/nexthopgroupkey.h b/orchagent/nexthopgroupkey.h index 7943c1d865..d012cbe41a 100644 --- a/orchagent/nexthopgroupkey.h +++ b/orchagent/nexthopgroupkey.h @@ -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) { diff --git a/orchagent/nexthopkey.h b/orchagent/nexthopkey.h index c5396902ef..9253d3a76d 100644 --- a/orchagent/nexthopkey.h +++ b/orchagent/nexthopkey.h @@ -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) {