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