LOG.debug("registering sessionKey: {}", Arrays.toString(sessionKey.getId()));
}
- if (features.getAuxiliaryId() == 0) {
+ if (features.getAuxiliaryId() == null || features.getAuxiliaryId() == 0) {
// handle primary
if (sessionContext != null) {
LOG.warn("duplicate datapathId occured while registering new switch session: "
context.setSessionKey(sessionKey);
connectionConductor.setSessionContext(context);
context.setValid(true);
- //TODO: retrieve listenerMapping from sessionManager and push it to conductor
getSessionManager().addSessionContext(sessionKey, context);
} else {
// handle auxiliary
auxiliaryKey);
}
- //TODO: retrieve listenerMapping from sessionManager and push it to conductor
sessionContext.addAuxiliaryConductor(auxiliaryKey,
connectionConductor);
connectionConductor.setSessionContext(sessionContext);