Skip to content

Commit 63dd75c

Browse files
author
John Howard
committed
Rever isDSR breaking change to HNSAddLoadBalancer
Signed-off-by: John Howard <jhoward@microsoft.com>
1 parent 371bbcb commit 63dd75c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

hnspolicylist.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ func GetPolicyListByID(policyListID string) (*PolicyList, error) {
3737
}
3838

3939
// AddLoadBalancer policy list for the specified endpoints
40-
func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, isDSR bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) {
41-
return hns.AddLoadBalancer(endpoints, isILB, isDSR, sourceVIP, vip, protocol, internalPort, externalPort)
40+
func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) {
41+
return hns.AddLoadBalancer(endpoints, isILB, sourceVIP, vip, protocol, internalPort, externalPort)
4242
}
4343

4444
// AddRoute adds route policy list for the specified endpoints

internal/hns/hnspolicylist.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ func (policylist *PolicyList) RemoveEndpoint(endpoint *HNSEndpoint) (*PolicyList
140140
}
141141

142142
// AddLoadBalancer policy list for the specified endpoints
143-
func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, isDSR bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) {
143+
func AddLoadBalancer(endpoints []HNSEndpoint, isILB bool, sourceVIP, vip string, protocol uint16, internalPort uint16, externalPort uint16) (*PolicyList, error) {
144144
operation := "AddLoadBalancer"
145145
title := "hcsshim::PolicyList::" + operation
146146
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,
150150
elbPolicy := &ELBPolicy{
151151
SourceVIP: sourceVIP,
152152
ILB: isILB,
153-
DSR: isDSR,
154153
}
155154

156155
if len(vip) > 0 {

0 commit comments

Comments
 (0)