- public static List<OFNode> getAllNodes(final NodeListener nodeListener) {
- List<OFNode> dpnList = new ArrayList<>();
- for (Map.Entry<Long, String> entry : nodeListener.getDpnIdToNameCache().entrySet()) {
- OFNode dpn = new OFNode(entry.getKey(), entry.getValue());
- dpnList.add(dpn);
- LOG.trace("Added OFNode: {} to the list", dpn.getNodeId());
- }
- Collections.sort(dpnList);
- return dpnList;
- }
-