Fixed a bug that resource command doesn't filter aggregatable types (MplsLabel and VlanId).

Change-Id: I156fcedb5e5823bc04d10160311af4f81169b221
diff --git a/cli/src/main/java/org/onosproject/cli/net/ResourcesCommand.java b/cli/src/main/java/org/onosproject/cli/net/ResourcesCommand.java
index 0a6e6a4..1f79113 100644
--- a/cli/src/main/java/org/onosproject/cli/net/ResourcesCommand.java
+++ b/cli/src/main/java/org/onosproject/cli/net/ResourcesCommand.java
@@ -150,7 +150,10 @@
                 nonAggregatable.add(r);
             } else if (aggregatableTypes.contains(r.last().getClass())) {
                 // aggregatable & terminal node
-                aggregatables.put(r.last().getClass().getSimpleName(), r);
+                String className = r.last().getClass().getSimpleName();
+                if (typesToPrint.isEmpty() || typesToPrint.contains(className)) {
+                    aggregatables.put(className, r);
+                }
             } else {
                 nonAggregatable.add(r);
             }