use of org.openkilda.floodlight.service.session.SessionService in project open-kilda by telstra.
the class SpeakerCommand method setup.
protected void setup(FloodlightModuleContext moduleContext) throws Exception {
IOFSwitchService ofSwitchManager = moduleContext.getServiceImpl(IOFSwitchService.class);
sessionService = moduleContext.getServiceImpl(SessionService.class);
DatapathId dpId = DatapathId.of(switchId.toLong());
sw = ofSwitchManager.getActiveSwitch(dpId);
if (sw == null) {
throw new SwitchNotFoundException(dpId);
}
}
Aggregations