[ONOS-6551] Tunnel implementation for L3VPN service.
Change-Id: I3171a83305cb7391d80fda94ddf567629a10675e
diff --git a/apps/l3vpn/src/main/java/org/onosproject/l3vpn/netl3vpn/NetL3VpnStore.java b/apps/l3vpn/src/main/java/org/onosproject/l3vpn/netl3vpn/NetL3VpnStore.java
index 8d63809..db926a2 100644
--- a/apps/l3vpn/src/main/java/org/onosproject/l3vpn/netl3vpn/NetL3VpnStore.java
+++ b/apps/l3vpn/src/main/java/org/onosproject/l3vpn/netl3vpn/NetL3VpnStore.java
@@ -55,6 +55,13 @@
Map<AccessInfo, InterfaceInfo> getInterfaceInfo();
/**
+ * Returns the tunnel information map available in the store, for a device.
+ *
+ * @return tunnel info map
+ */
+ Map<DeviceId, Integer> getTunnelInfo();
+
+ /**
* Adds freed id to the freed list in the store.
*
* @param id id
@@ -95,6 +102,14 @@
void addBgpInfo(BgpInfo bgpInfo, DeviceId devId);
/**
+ * Adds the device id and the number of tunnels created for that device.
+ *
+ * @param devId device id
+ * @param count number of tunnels
+ */
+ void addTunnelInfo(DeviceId devId, Integer count);
+
+ /**
* Removes the interface info with the key access info from the store.
*
* @param accessInfo access info
@@ -127,4 +142,13 @@
* @return true if removed; false otherwise
*/
boolean removeBgpInfo(BgpInfo bgpInfo);
+
+ /**
+ * Removes the device id from the store with the value count of number of
+ * tunnels.
+ *
+ * @param id device id
+ * @return true if removed; false otherwise
+ */
+ boolean removeTunnelInfo(DeviceId id);
}