From 63dd75c8beaf951849dcc4ac99a241e852dfc3c3 Mon Sep 17 00:00:00 2001 From: John Howard Date: Fri, 30 Nov 2018 10:27:21 -0800 Subject: [PATCH] Rever isDSR breaking change to HNSAddLoadBalancer Signed-off-by: John Howard --- hnspolicylist.go | 4 ++-- internal/hns/hnspolicylist.go | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/hnspolicylist.go b/hnspolicylist.go index 12c2b97029..55aaa4a50e 100644 --- a/hnspolicylist.go +++ b/hnspolicylist.go @@ -37,8 +37,8 @@ func GetPolicyListByID(policyListID string) (*PolicyList, error) { } // AddLoadBalancer policy list for the specified endpoints -func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, isDSR bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) { - return hns.AddLoadBalancer(endpoints, isILB, isDSR, sourceVIP, vip, protocol, internalPort, externalPort) +func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) { + return hns.AddLoadBalancer(endpoints, isILB, sourceVIP, vip, protocol, internalPort, externalPort) } // AddRoute adds route policy list for the specified endpoints diff --git a/internal/hns/hnspolicylist.go b/internal/hns/hnspolicylist.go index cc98b49e0a..31322a6816 100644 --- a/internal/hns/hnspolicylist.go +++ b/internal/hns/hnspolicylist.go @@ -140,7 +140,7 @@ func (policylist *PolicyList) RemoveEndpoint(endpoint *HNSEndpoint) (*PolicyList } // AddLoadBalancer policy list for the specified endpoints -func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, isDSR bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) { +func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) { operation := "AddLoadBalancer" title := "hcsshim::PolicyList::" + operation logrus.Debugf(title+" endpointId=%v, isILB=%v, sourceVIP=%s, vip=%s, protocol=%v, internalPort=%v, externalPort=%v", endpoints, isILB, sourceVIP, vip, protocol, internalPort, externalPort) @@ -150,7 +150,6 @@ func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, isDSR bool, sourceVIP, elbPolicy := &ELBPolicy{ SourceVIP: sourceVIP, ILB: isILB, - DSR: isDSR, } if len(vip) > 0 {