blob: 70286b6ed47e6d2f77000089e8902eb67636673f [file] [log] [blame]
Marc De Leenheerc662d322016-02-18 16:05:10 -08001/*
2 * Copyright 2016 Open Networking Laboratory
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16package org.onosproject.provider.snmp.device.impl;
17
18import com.btisystems.pronx.ems.core.snmp.ISnmpSession;
19import org.onosproject.net.Device;
20import org.onosproject.net.device.DefaultDeviceDescription;
21import org.onosproject.net.device.DeviceDescription;
22import org.slf4j.Logger;
23import org.slf4j.LoggerFactory;
24
25/**
26 * Device description provider for Lumentum SDN ROADMs.
27 * @deprecated 1.5.0 Falcon, not compliant with ONOS SB and driver architecture.
28 */
29@Deprecated
30public class LumentumDeviceDescriptionProvider implements SnmpDeviceDescriptionProvider {
31
32 private static final Logger log = LoggerFactory.getLogger(LumentumDeviceDescriptionProvider.class);
33
34 @Override
35 public DeviceDescription populateDescription(ISnmpSession session, DeviceDescription description) {
36 return new DefaultDeviceDescription(description.deviceUri(), Device.Type.ROADM,
37 "Lumentum", "SDN ROADM", "1.0", "v1", description.chassisId(), description.annotations());
38 }
39}