[ONOS-4226]Portchain to service function map interface
Change-Id: Ie49d2b6755bf5ee92b40e09755a3ae675c47e31d
diff --git a/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/PortPairGroup.java b/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/PortPairGroup.java
index 0b571b1..bdcfd1d 100644
--- a/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/PortPairGroup.java
+++ b/apps/vtn/vtnrsc/src/main/java/org/onosproject/vtnrsc/PortPairGroup.java
@@ -16,6 +16,7 @@
package org.onosproject.vtnrsc;
import java.util.List;
+import java.util.Map;
/**
* Abstraction of an entity providing Port Pair Group information.
@@ -63,7 +64,7 @@
*
* @param portPairId port pair id.
*/
- public void addLoad(PortPairId portPairId);
+ void addLoad(PortPairId portPairId);
/**
* Get the load on the given port pair id.
@@ -71,7 +72,14 @@
* @param portPairId port pair id
* @return load on the given port pair id.
*/
- public int getLoad(PortPairId portPairId);
+ int getLoad(PortPairId portPairId);
+
+ /**
+ * Get the map of port pair id and its load.
+ *
+ * @return port pair and load map
+ */
+ Map<PortPairId, Integer> portPairLoadMap();
/**
* Returns whether this port pair group is an exact match to the