Description:
Due to deviceInfo cache not populated during add, during local-ucast-mac
removal, this mac entry is missing causing not to delete from optopo on mac removal
from switch.
The onSuccess() which populate the cache is not called properly during
add resulting in this issue.
Change-Id: I9db66caee024daf254cba5b696ef697e6309f1bb
Signed-off-by: Chetan Arakere Gowdru <chetan.arakere@altencalsoftlabs.com>
}
connectionInstance.getDeviceInfo().onOperDataAvailable();
}
}
connectionInstance.getDeviceInfo().onOperDataAvailable();
}
+
+ @Override
+ public void onSuccess() {
+
+ for (TransactionCommand command : commands) {
+ command.onSuccess();
+ }
+ }
+
+ @Override
+ public void onFailure() {
+ for (TransactionCommand command : commands) {
+ command.onFailure();
+ }
+ }
+
@Override
public void onSuccess(final Object result) {
forgetSuccessfulTransaction(transaction);
@Override
public void onSuccess(final Object result) {
forgetSuccessfulTransaction(transaction);
}
@Override
public void onFailure(final Throwable throwable) {
// NOOP - handled by failure of transaction chain
}
@Override
public void onFailure(final Throwable throwable) {
// NOOP - handled by failure of transaction chain
}
}, MoreExecutors.directExecutor());
}
}
}, MoreExecutors.directExecutor());
}