[VOL-4495] Do not remove NNI flows, they are only wiped out on device disconnect
Change-Id: I904def137485f66a86fa9241a98e7ddeda10f481
diff --git a/impl/src/main/java/org/opencord/olt/impl/OltFlowService.java b/impl/src/main/java/org/opencord/olt/impl/OltFlowService.java
index f798e25..f1ef425 100644
--- a/impl/src/main/java/org/opencord/olt/impl/OltFlowService.java
+++ b/impl/src/main/java/org/opencord/olt/impl/OltFlowService.java
@@ -659,11 +659,7 @@
@Override
public void purgeDeviceFlows(DeviceId deviceId) {
log.debug("Purging flows on device {}", deviceId);
- try {
- flowRuleService.purgeFlowRules(deviceId);
- } catch (Exception e) {
- log.error("Cannot purge flow rules", e);
- }
+ flowRuleService.purgeFlowRules(deviceId);
// removing the status from the cpStatus map
if (log.isTraceEnabled()) {
@@ -678,8 +674,6 @@
cpStatus.remove(entry.getKey());
}
}
- } catch (Exception e) {
- log.error("Cannot wipe out cpStatus", e);
} finally {
cpStatusWriteLock.unlock();
}
@@ -697,8 +691,6 @@
provisionedSubscribers.remove(entry.getKey());
}
}
- } catch (Exception e) {
- log.error("Cannot wipe out subscribers", e);
} finally {
provisionedSubscribersWriteLock.unlock();
}