use of org.onosproject.net.driver.DefaultDriverData in project onos by opennetworkinglab.
the class OFAgentVirtualFlowEntryBuilder method getDriver.
protected static DriverHandler getDriver(DeviceId devId, DriverService driverService) {
log.debug("calling getDriver for {}", devId);
Driver driver = driverService.getDriver(DRIVER_NAME);
DriverHandler handler = new DefaultDriverHandler(new DefaultDriverData(driver, devId));
return handler;
}
use of org.onosproject.net.driver.DefaultDriverData in project onos by opennetworkinglab.
the class OFAgentVirtualGroupBucketEntryBuilder method getDriver.
/**
* Retrieves the driver handler for the specified device.
*
* @param dpid datapath identifier
* @return driver handler
*/
protected DriverHandler getDriver(Dpid dpid) {
DeviceId devId = DeviceId.deviceId(Dpid.uri(dpid));
log.debug("running getDriver for {}", devId);
Driver driver = driverService.getDriver(DRIVER_NAME);
DriverHandler handler = new DefaultDriverHandler(new DefaultDriverData(driver, devId));
return handler;
}
Aggregations