public List<OpenDoveVGWVNIDMapping> getVgwVNIDMappings() {
   List<OpenDoveVGWVNIDMapping> answer = new ArrayList<OpenDoveVGWVNIDMapping>();
   Iterator<OpenDoveObject> i = vgwVNIDMap.values().iterator();
   while (i.hasNext()) {
     answer.add((OpenDoveVGWVNIDMapping) i.next());
   }
   return answer;
 }
 public List<OpenDoveNetwork> getNetworks() {
   List<OpenDoveNetwork> answer = new ArrayList<OpenDoveNetwork>();
   Iterator<OpenDoveObject> i = networkMap.values().iterator();
   while (i.hasNext()) {
     answer.add((OpenDoveNetwork) i.next());
   }
   return answer;
 }
 public List<OpenDoveSwitch> getSwitches() {
   List<OpenDoveSwitch> answer = new ArrayList<OpenDoveSwitch>();
   Iterator<OpenDoveObject> i = switchMap.values().iterator();
   while (i.hasNext()) {
     answer.add((OpenDoveSwitch) i.next());
   }
   return answer;
 }
 public List<OpenDoveDomain> getDomains() {
   List<OpenDoveDomain> answer = new ArrayList<OpenDoveDomain>();
   Iterator<OpenDoveObject> i = domainMap.values().iterator();
   while (i.hasNext()) {
     answer.add((OpenDoveDomain) i.next());
   }
   return answer;
 }
 public OpenDoveDomain getDomainByNumber(String domainID) {
   for (OpenDoveObject o : domainMap.values()) {
     OpenDoveDomain domain = (OpenDoveDomain) o;
     if (domainID.equalsIgnoreCase(domain.getCreateVersion().toString())) {
       return domain;
     }
   }
   return null;
 }
 public boolean domainExistsByNumber(String domainID) {
   for (OpenDoveObject o : domainMap.values()) {
     OpenDoveDomain domain = (OpenDoveDomain) o;
     if (domainID.equalsIgnoreCase(domain.getCreateVersion().toString())) {
       return true;
     }
   }
   return false;
 }
 public void deleteServiceAppliance(String saUUID) {
   if (doveServiceApplianceDB.containsKey(saUUID)) {
     OpenDoveServiceAppliance target = doveServiceApplianceDB.remove(saUUID);
     for (OpenDoveObject o : networkMap.values()) {
       OpenDoveNetwork network = (OpenDoveNetwork) o;
       network.removeEGW(target);
     }
   }
 }
 public OpenDoveNetwork getNetworkByName(String name) {
   Iterator<OpenDoveObject> i = networkMap.values().iterator();
   while (i.hasNext()) {
     OpenDoveNetwork n = (OpenDoveNetwork) i.next();
     if (n.getName().equals(name)) {
       return n;
     }
   }
   return null;
 }
 public OpenDoveNetwork getNetworkByVnid(int vnid) {
   Iterator<OpenDoveObject> i = networkMap.values().iterator();
   while (i.hasNext()) {
     OpenDoveNetwork n = (OpenDoveNetwork) i.next();
     if (n.getVnid() == vnid) {
       return n;
     }
   }
   return null;
 }
 public boolean networkExistsByVnid(int vnid) {
   Iterator<OpenDoveObject> i = networkMap.values().iterator();
   while (i.hasNext()) {
     OpenDoveNetwork n = (OpenDoveNetwork) i.next();
     if (n.getVnid() == vnid) {
       return true;
     }
   }
   return false;
 }
 public OpenDoveDomain getDomainByName(String name) {
   Iterator<OpenDoveObject> i = domainMap.values().iterator();
   while (i.hasNext()) {
     OpenDoveDomain d = (OpenDoveDomain) i.next();
     if (d.getName().compareTo(name) == 0) {
       return d;
     }
   }
   return null;
 }
 public boolean domainExistsByName(String name) {
   Iterator<OpenDoveObject> i = domainMap.values().iterator();
   while (i.hasNext()) {
     OpenDoveDomain d = (OpenDoveDomain) i.next();
     if (d.getName().compareTo(name) == 0) {
       return true;
     }
   }
   return false;
 }