Fixed bugs while getting demo.py to work.
[affinity.git] / affinity / implementation / src / main / java / org / opendaylight / affinity / affinity / internal / AffinityManagerImpl.java
index edf37fe01545f7e469fa1b5378ff2f44ad017f7d..6f15051b5b45d9b6095912f501fe5365080c8272 100644 (file)
@@ -526,7 +526,6 @@ public class AffinityManagerImpl implements IAffinityManager,
         }
     }
 
-    /* Add a nfchain config for this affinity link. */
     public List<Flow> getFlowlist(AffinityLink al) {
         InetAddress from = null, to = null;
 
@@ -581,6 +580,9 @@ public class AffinityManagerImpl implements IAffinityManager,
             List<Flow> flowlist = getFlowlist(al);
             flowgroups.put(al.getName(), flowlist);
         }
+        for (String a: flowgroups.keySet()) {
+            log.info("Adding {} to flowgroups (# flows={})", a, flowgroups.get(a).size());
+        }
         return flowgroups;
     }
 
@@ -592,6 +594,7 @@ public class AffinityManagerImpl implements IAffinityManager,
         for (AffinityLink al: getAllAffinityLinks()) {
             HashMap<AffinityAttributeType, AffinityAttribute> pergroupattrs = al.getAttributeList();
             attributes.put(al.getName(), pergroupattrs);
+            log.info("Adding {} to attributes (# attributes={})", al.getName(), pergroupattrs.values().size());
         }
         return attributes;
     }