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