After Neon MRI version bump, on a node removal, rootNode.getDataAfter()
is returning null instead of empty list, and hence requires a change
in service-binding logic of GENIUS
JIRA: TSC-179
Change-Id: I098fed50647268b70469b7097b3979d2424f8a0f
Signed-off-by: Faseela K <faseela.k@ericsson.com>
boundServicesState.getInterfaceName());
futures.add(txRunner.callWithNewWriteOnlyTransactionAndSubmit(CONFIGURATION, tx -> {
BigInteger dpId = boundServicesState.getDpid();
- if (boundServices.isEmpty()) {
+ if (boundServices == null || boundServices.isEmpty()) {
// Remove default entry from Lport Dispatcher Table.
FlowBasedServicesUtils.removeLPortDispatcherFlow(dpId, boundServicesState.getInterfaceName(),
boundServiceOld, tx, NwConstants.DEFAULT_SERVICE_INDEX);
boundServicesNew.getServiceName(), boundServicesNew.getServicePriority());
return;
}
- if (boundServicesList.isEmpty()) {
+ if (boundServicesList == null || boundServicesList.isEmpty()) {
FlowBasedServicesUtils.removeBoundServicesState(tx, interfaceName, serviceMode);
}
flowBasedServicesConfigRemovable.unbindService(futures, interfaceName, boundServicesNew,