Marc De Leenheer | c662d32 | 2016-02-18 16:05:10 -0800 | [diff] [blame] | 1 | /* |
| 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 | */ |
| 16 | package org.onosproject.provider.snmp.device.impl; |
| 17 | |
| 18 | import com.btisystems.pronx.ems.core.snmp.ISnmpSession; |
| 19 | import org.onosproject.net.Device; |
| 20 | import org.onosproject.net.device.DefaultDeviceDescription; |
| 21 | import org.onosproject.net.device.DeviceDescription; |
| 22 | import org.slf4j.Logger; |
| 23 | import 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 |
| 30 | public 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 | } |