Search in sources :

Example 1 with DefaultTl1Device

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()));
    });
}
Also used : DefaultTl1Device(org.onosproject.tl1.DefaultTl1Device) DeviceId(org.onosproject.net.DeviceId) Tl1DeviceConfig(org.onosproject.tl1.device.Tl1DeviceConfig)

Aggregations

DeviceId (org.onosproject.net.DeviceId)1 DefaultTl1Device (org.onosproject.tl1.DefaultTl1Device)1 Tl1DeviceConfig (org.onosproject.tl1.device.Tl1DeviceConfig)1