public static Map<String, List<String>> getBondNameToBondSlaveNamesMap(Collection<? extends VdsNetworkInterface> nics) { Map<String, List<String>> result = new HashMap<>(); Map<String, List<VdsNetworkInterface>> map = getBondNameToBondSlavesMap(nics); for (Map.Entry<String, List<VdsNetworkInterface>> entry : map.entrySet()) { result.put(entry.getKey(), getNicNames(entry.getValue())); } return result; }