Search in sources :

Example 1 with ConfigSetter

use of org.onosproject.net.behaviour.ConfigSetter in project onos by opennetworkinglab.

the class NetconfRpcTestCommand method doExecute.

@Override
protected void doExecute() {
    DriverService service = get(DriverService.class);
    deviceId = DeviceId.deviceId(uri);
    DriverHandler h = service.createHandler(deviceId);
    ConfigSetter config = h.behaviour(ConfigSetter.class);
    checkNotNull(cfgFile, "Configuration file cannot be null");
    print(config.setConfiguration(cfgFile));
}
Also used : DriverHandler(org.onosproject.net.driver.DriverHandler) ConfigSetter(org.onosproject.net.behaviour.ConfigSetter) DriverService(org.onosproject.net.driver.DriverService)

Aggregations

ConfigSetter (org.onosproject.net.behaviour.ConfigSetter)1 DriverHandler (org.onosproject.net.driver.DriverHandler)1 DriverService (org.onosproject.net.driver.DriverService)1