Skip to content

Commit

Permalink
IPVS fix
Browse files Browse the repository at this point in the history
In accordance with the logic for SD, remove the ipvs rules
only when there is no more endpoints using the IP

Signed-off-by: Flavio Crisciani <flavio.crisciani@docker.com>
  • Loading branch information
Flavio Crisciani committed Jun 12, 2017
1 parent 86ae3cf commit 4885e17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ func (c *controller) rmServiceBinding(svcName, svcID, nID, eID, containerName st

// Remove loadbalancer service(if needed) and backend in all
// sandboxes in the network only if the vip is valid.
if len(vip) != 0 {
if len(vip) != 0 && entries == 0 {
n.(*network).rmLBBackend(ip, vip, lb.fwMark, ingressPorts, rmService)
}

Expand Down

0 comments on commit 4885e17

Please sign in to comment.