unconfigureVIP removes a unicast VIP from the load balancing interface.
(vip *seesaw.VIP)
| 1333 | |
| 1334 | // unconfigureVIP removes a unicast VIP from the load balancing interface. |
| 1335 | func (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. |
| 1353 | func (v *vserver) unconfigureVIPs() { |
no test coverage detected