public static void clearAddress(Address address) { if (!address.isPending()) { try { markAddressUnassigned(address); dispatchUnassignAddress(address); } catch (Throwable e1) { LOG.debug(e1, e1); } } else if (Address.UNALLOCATED_USERID.equals(address.getUserId())) { address.clean(); } }
public static void unassignAddressFromVm(Address address, VmInstance vm) { AddressUtil.markAddressUnassigned(address); AddressUtil.dispatchUnassignAddress(address, vm); }