use of org.onosproject.net.driver.DriverHandler in project onos by opennetworkinglab.
the class VoltGetNniLinksCommand method doExecute.
@Override
protected void doExecute() {
DriverService service = get(DriverService.class);
deviceId = DeviceId.deviceId(uri);
DriverHandler h = service.createHandler(deviceId);
VoltNniLinkConfig volt = h.behaviour(VoltNniLinkConfig.class);
String reply = volt.getNniLinks(target);
if (reply != null) {
print("%s", reply);
} else {
print("No reply from %s", deviceId.toString());
}
}
use of org.onosproject.net.driver.DriverHandler 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.net.driver.DriverHandler 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.net.driver.DriverHandler 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.net.driver.DriverHandler in project onos by opennetworkinglab.
the class VoltOndemandFwdlCommand method doExecute.
@Override
protected void doExecute() {
DriverService service = get(DriverService.class);
deviceId = DeviceId.deviceId(uri);
DriverHandler h = service.createHandler(deviceId);
VoltFwdlConfig volt = h.behaviour(VoltFwdlConfig.class);
String reply = volt.upgradeFirmwareOndemand(target);
if (reply != null) {
print("%s", reply);
} else {
print("ONU firmware-upgrade failure %s", deviceId.toString());
}
}
Aggregations