Search in sources :

Example 1 with SessionService

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);
    }
}
Also used : SessionService(org.openkilda.floodlight.service.session.SessionService) IOFSwitchService(net.floodlightcontroller.core.internal.IOFSwitchService) DatapathId(org.projectfloodlight.openflow.types.DatapathId) SwitchNotFoundException(org.openkilda.floodlight.error.SwitchNotFoundException)

Aggregations

IOFSwitchService (net.floodlightcontroller.core.internal.IOFSwitchService)1 SwitchNotFoundException (org.openkilda.floodlight.error.SwitchNotFoundException)1 SessionService (org.openkilda.floodlight.service.session.SessionService)1 DatapathId (org.projectfloodlight.openflow.types.DatapathId)1