Add implementation for flat L3 overlay
[groupbasedpolicy.git] / renderers / vpp / src / main / java / org / opendaylight / groupbasedpolicy / renderer / vpp / lisp / LispState.java
index 9b46a7565c8c87e41bd1ddff0aff349d32b2ad2c..418fc56e89db564fb352f2feade7391d516e27d8 100644 (file)
@@ -28,6 +28,7 @@ public class LispState {
     private Set<Long> vniSet;
     private boolean mapRegisteredEnabled;
     private HashMap<Eid, String> eidToMappingIdMapper;
+    private int interfaceCount;
 
     public LispState(String hostName) {
         this.hostName = hostName;
@@ -38,6 +39,7 @@ public class LispState {
         mapRegisteredEnabled = false;
         vniSet = new HashSet<>();
         eidToMappingIdMapper = new HashMap<>();
+        interfaceCount = 1;
     }
 
     public String getHostName() {
@@ -105,6 +107,7 @@ public class LispState {
     }
 
     public void addInEidSet(Eid eid, String mappingId) {
+        interfaceCount++;
         eidToMappingIdMapper.put(eid, mappingId);
     }
 
@@ -119,4 +122,8 @@ public class LispState {
     public String getEidMapping(Eid eid) {
         return eidToMappingIdMapper.get(eid);
     }
+
+    public int getInterfaceId() {
+        return interfaceCount;
+    }
 }