MCPcopy
hub / github.com/google/seesaw / unconfigureVIP

Method unconfigureVIP

engine/vserver.go:1335–1350  ·  view source on GitHub ↗

unconfigureVIP removes a unicast VIP from the load balancing interface.

(vip *seesaw.VIP)

Source from the content-addressed store, hash-verified

1333
1334// unconfigureVIP removes a unicast VIP from the load balancing interface.
1335func (v *vserver) unconfigureVIP(vip *seesaw.VIP) {
1336 configured, ok := v.vips[*vip]
1337 if !ok {
1338 return
1339 }
1340 if configured {
1341 if err := v.engine.lbInterface.DeleteVIP(vip); err != nil {
1342 log.Fatalf("%v: failed to remove VIP %v: %v", v, vip, err)
1343 }
1344 if err := v.engine.lbInterface.DeleteVserver(v.lbVservers[vip.IP], vip.IP.AF()); err != nil {
1345 log.Fatalf("%v: failed to delete Vserver: %v", v, err)
1346 }
1347 delete(v.lbVservers, vip.IP)
1348 }
1349 delete(v.vips, *vip)
1350}
1351
1352// unconfigureVIPs removes unicast VIPs from the load balancing interface.
1353func (v *vserver) unconfigureVIPs() {

Callers 2

configUpdateMethod · 0.95
unconfigureVIPsMethod · 0.95

Calls 3

AFMethod · 0.80
DeleteVIPMethod · 0.65
DeleteVserverMethod · 0.65

Tested by

no test coverage detected