private Set<Long> vniSet;
private boolean mapRegisteredEnabled;
private HashMap<Eid, String> eidToMappingIdMapper;
+ private int interfaceCount;
public LispState(String hostName) {
this.hostName = hostName;
mapRegisteredEnabled = false;
vniSet = new HashSet<>();
eidToMappingIdMapper = new HashMap<>();
+ interfaceCount = 1;
}
public String getHostName() {
}
public void addInEidSet(Eid eid, String mappingId) {
+ interfaceCount++;
eidToMappingIdMapper.put(eid, mappingId);
}
public String getEidMapping(Eid eid) {
return eidToMappingIdMapper.get(eid);
}
+
+ public int getInterfaceId() {
+ return interfaceCount;
+ }
}