Search in sources :

Example 1 with VoltFwdlConfig

use of org.onosproject.drivers.fujitsu.behaviour.VoltFwdlConfig in project onos by opennetworkinglab.

the class VoltOndemandFwdlCommand method doExecute.

@Override
protected void doExecute() {
    DriverService service = get(DriverService.class);
    deviceId = DeviceId.deviceId(uri);
    DriverHandler h = service.createHandler(deviceId);
    VoltFwdlConfig volt = h.behaviour(VoltFwdlConfig.class);
    String reply = volt.upgradeFirmwareOndemand(target);
    if (reply != null) {
        print("%s", reply);
    } else {
        print("ONU firmware-upgrade failure %s", deviceId.toString());
    }
}
Also used : DriverHandler(org.onosproject.net.driver.DriverHandler) DriverService(org.onosproject.net.driver.DriverService) VoltFwdlConfig(org.onosproject.drivers.fujitsu.behaviour.VoltFwdlConfig)

Aggregations

VoltFwdlConfig (org.onosproject.drivers.fujitsu.behaviour.VoltFwdlConfig)1 DriverHandler (org.onosproject.net.driver.DriverHandler)1 DriverService (org.onosproject.net.driver.DriverService)1