use of org.onosproject.drivers.fujitsu.behaviour.VoltAlertConfig in project onos by opennetworkinglab.
the class VoltSubscribeCommand method doExecute.
@Override
protected void doExecute() {
DriverService service = get(DriverService.class);
deviceId = DeviceId.deviceId(uri);
DriverHandler h = service.createHandler(deviceId);
VoltAlertConfig volt = h.behaviour(VoltAlertConfig.class);
volt.subscribe(mode);
}
use of org.onosproject.drivers.fujitsu.behaviour.VoltAlertConfig in project onos by opennetworkinglab.
the class VoltGetAlertFilterCommand method doExecute.
@Override
protected void doExecute() {
DriverService service = get(DriverService.class);
deviceId = DeviceId.deviceId(uri);
DriverHandler h = service.createHandler(deviceId);
VoltAlertConfig voltNe = h.behaviour(VoltAlertConfig.class);
String reply = voltNe.getAlertFilter();
if (reply != null) {
print("%s", reply);
} else {
print("No reply from %s", deviceId.toString());
}
}
use of org.onosproject.drivers.fujitsu.behaviour.VoltAlertConfig in project onos by opennetworkinglab.
the class VoltSetAlertFilterCommand method doExecute.
@Override
protected void doExecute() {
DriverService service = get(DriverService.class);
deviceId = DeviceId.deviceId(uri);
DriverHandler h = service.createHandler(deviceId);
VoltAlertConfig volt = h.behaviour(VoltAlertConfig.class);
volt.setAlertFilter(severity);
}
Aggregations