use of org.onosproject.drivers.fujitsu.behaviour.VoltOnuConfig in project onos by opennetworkinglab.
the class VoltGetOnusCommand method doExecute.
@Override
protected void doExecute() {
DriverService service = get(DriverService.class);
deviceId = DeviceId.deviceId(uri);
DriverHandler h = service.createHandler(deviceId);
VoltOnuConfig volt = h.behaviour(VoltOnuConfig.class);
String reply = volt.getOnus(target);
if (reply != null) {
print("%s", reply);
} else {
print("No reply from %s", deviceId.toString());
}
}
use of org.onosproject.drivers.fujitsu.behaviour.VoltOnuConfig in project onos by opennetworkinglab.
the class VoltGetOnuStatsCommand method doExecute.
@Override
protected void doExecute() {
DriverService service = get(DriverService.class);
deviceId = DeviceId.deviceId(uri);
DriverHandler h = service.createHandler(deviceId);
VoltOnuConfig volt = h.behaviour(VoltOnuConfig.class);
String reply = volt.getOnuStatistics(target);
if (reply != null) {
print("%s", reply);
} else {
print("No reply from %s", deviceId.toString());
}
}
use of org.onosproject.drivers.fujitsu.behaviour.VoltOnuConfig in project onos by opennetworkinglab.
the class VoltSetOnuCommand method doExecute.
@Override
protected void doExecute() {
DriverService service = get(DriverService.class);
deviceId = DeviceId.deviceId(uri);
DriverHandler h = service.createHandler(deviceId);
VoltOnuConfig volt = h.behaviour(VoltOnuConfig.class);
String reply = volt.setOnu(target);
if (reply != null) {
print("%s", reply);
} else {
print("No reply from %s", deviceId.toString());
}
}
Aggregations