|
@@ -4,6 +4,7 @@ import (
|
|
"encoding/json"
|
|
"encoding/json"
|
|
"fmt"
|
|
"fmt"
|
|
"net"
|
|
"net"
|
|
|
|
+ "runtime"
|
|
"strings"
|
|
"strings"
|
|
"sync"
|
|
"sync"
|
|
"time"
|
|
"time"
|
|
@@ -1081,7 +1082,9 @@ func (n *network) delete(force bool, rmLBEndpoint bool) error {
|
|
// Cleanup the load balancer. On Windows this call is required
|
|
// Cleanup the load balancer. On Windows this call is required
|
|
// to remove remote loadbalancers in VFP, and must be performed before
|
|
// to remove remote loadbalancers in VFP, and must be performed before
|
|
// dataplane network deletion.
|
|
// dataplane network deletion.
|
|
- c.cleanupServiceBindings(n.ID())
|
|
|
|
|
|
+ if runtime.GOOS == "windows" {
|
|
|
|
+ c.cleanupServiceBindings(n.ID())
|
|
|
|
+ }
|
|
|
|
|
|
// Delete the network from the dataplane
|
|
// Delete the network from the dataplane
|
|
if err = n.deleteNetwork(); err != nil {
|
|
if err = n.deleteNetwork(); err != nil {
|