Search in sources :

Example 1 with VoltNeConfig

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

the class VoltGetAllCommand method doExecute.

@Override
protected void doExecute() {
    DriverService service = get(DriverService.class);
    deviceId = DeviceId.deviceId(uri);
    DriverHandler h = service.createHandler(deviceId);
    VoltNeConfig volt = h.behaviour(VoltNeConfig.class);
    String reply = volt.getAll();
    if (reply != null) {
        print("%s", reply);
    } else {
        print("No reply from %s", deviceId.toString());
    }
}
Also used : VoltNeConfig(org.onosproject.drivers.fujitsu.behaviour.VoltNeConfig) DriverHandler(org.onosproject.net.driver.DriverHandler) DriverService(org.onosproject.net.driver.DriverService)

Aggregations

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