Search in sources :

Example 1 with VoltOnuConfig

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());
    }
}
Also used : DriverHandler(org.onosproject.net.driver.DriverHandler) VoltOnuConfig(org.onosproject.drivers.fujitsu.behaviour.VoltOnuConfig) DriverService(org.onosproject.net.driver.DriverService)

Example 2 with VoltOnuConfig

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());
    }
}
Also used : DriverHandler(org.onosproject.net.driver.DriverHandler) VoltOnuConfig(org.onosproject.drivers.fujitsu.behaviour.VoltOnuConfig) DriverService(org.onosproject.net.driver.DriverService)

Example 3 with VoltOnuConfig

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());
    }
}
Also used : DriverHandler(org.onosproject.net.driver.DriverHandler) VoltOnuConfig(org.onosproject.drivers.fujitsu.behaviour.VoltOnuConfig) DriverService(org.onosproject.net.driver.DriverService)

Aggregations

VoltOnuConfig (org.onosproject.drivers.fujitsu.behaviour.VoltOnuConfig)3 DriverHandler (org.onosproject.net.driver.DriverHandler)3 DriverService (org.onosproject.net.driver.DriverService)3