From cdea5e9bfec104a51a886b4a73e122654119d44e Mon Sep 17 00:00:00 2001 From: "thomas.cappleman@metaswitch.com" Date: Fri, 12 Nov 2021 18:26:12 +0000 Subject: [PATCH] Fix next hop compilation (#2025) *Fixed compilation of SWSS following last 2 commits --- orchagent/nexthopgroupkey.h | 2 +- orchagent/nexthopkey.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/orchagent/nexthopgroupkey.h b/orchagent/nexthopgroupkey.h index 7943c1d865e3..d012cbe41a5c 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 c5396902eff7..9253d3a76d03 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) {