use of org.onosproject.tl1.DefaultTl1Device in project onos by opennetworkinglab.
the class Tl1DeviceProvider method connectDevices.
// Method to register devices provided via net-cfg under devices/ tree
private void connectDevices() {
Set<DeviceId> deviceSubjects = cfgRegistry.getSubjects(DeviceId.class, Tl1DeviceConfig.class);
deviceSubjects.forEach(deviceId -> {
Tl1DeviceConfig config = cfgRegistry.getConfig(deviceId, Tl1DeviceConfig.class);
connectDevice(new DefaultTl1Device(config.ip(), config.port(), config.username(), config.password()));
});
}
Aggregations