@Override public void setBonded(Boolean bonded) { if (Objects.equals(Boolean.FALSE, bonded)) { throw new IllegalArgumentException("It is illegal to have 'unbonded' bond."); } else { super.setBonded(bonded); } }
public static VdsNetworkInterface getMaster() { VdsNetworkInterface entity = new VdsNetworkInterface(); entity.setId(MASTER_GUID); entity.setName(MASTER_NAME); entity.setNetworkName(NETWORK_NAME); entity.setSpeed(NIC_SPEED); entity.setBonded(true); entity.setIpv4BootProtocol(IPV4_BOOT_PROTOCOL); entity.setIpv6BootProtocol(IPV6_BOOT_PROTOCOL); return setUpStatistics(entity, MASTER_GUID); }
entity.setBonded(true); if (model.getBonding().isSetOptions()) {