コード例 #1
0
 protected String appendDetachNetworkSuggestion(
     String originalMessage, NetworkInterfaceModel nic) {
   return originalMessage
       + ' '
       + ConstantsManager.getInstance()
           .getMessages()
           .suggestDetachNetwork(nic.getCulpritNetwork());
 }
コード例 #2
0
 public static void clearNetworks(NetworkInterfaceModel nic, List<VdsNetworkInterface> allNics) {
   List<LogicalNetworkModel> attachedNetworks = nic.getItems();
   if (attachedNetworks.size() > 0) {
     for (LogicalNetworkModel networkModel :
         new ArrayList<LogicalNetworkModel>(attachedNetworks)) {
       DETACH_NETWORK.getCommand(networkModel, null, allNics).execute();
     }
   }
 }
コード例 #3
0
 private static boolean isDisplayNetworkAttached(NetworkInterfaceModel networkItemModel) {
   return isDisplayNetworkAttached(networkItemModel.getItems());
 }