@Override
  public boolean removeTunnelInfo(TunnelId tunnelId) {
    checkNotNull(tunnelId, TUNNEL_ID_NULL);

    if (tunnelInfoMap.remove(tunnelId) == null) {
      log.error("Tunnel info deletion for tunnel id {} has failed.", tunnelId.toString());
      return false;
    }
    return true;
  }
Esempio n. 2
0
 @Override
 public void removeRegion(RegionId regionId) {
   membershipRepo.remove(regionId);
   regionsRepo.remove(regionId);
 }