use of org.openkilda.floodlight.service.session.Session in project open-kilda by telstra.
the class BfdCommand method call.
@Override
public Command call() throws Exception {
try {
IOFSwitch sw = switchManager.lookupSwitch(target);
validate(sw);
try (Session session = sessionService.open(new MessageContext(getContext().getCorrelationId()), sw)) {
handle(session);
}
} catch (SwitchOperationException e) {
handleError(e);
// early error response
sendResponse();
}
return null;
}
Aggregations