private static void detachNetwork( List<VdsNetworkInterface> allNics, LogicalNetworkModel networkToDetach) { // remove the vlan device if (networkToDetach.hasVlan()) { allNics.remove(networkToDetach.getVlanNicModel().getEntity()); } networkToDetach.detach(); }
private static boolean isDisplayNetwork(LogicalNetworkModel logicalNetworkModel) { return logicalNetworkModel.getEntity().getCluster().isDisplay(); }
@Override public boolean isDisplayNetworkAffected(NetworkItemModel<?> op1, NetworkItemModel<?> op2) { LogicalNetworkModel networkToBeAttached = (LogicalNetworkModel) op1; return isDisplayNetwork(networkToBeAttached) && networkToBeAttached.isAttached(); }