Yuta HIGUCHI | 8c6e194 | 2018-04-05 13:40:51 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2018-present Open Networking Foundation |
| 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.odtn.behaviour; |
| 17 | |
| 18 | import java.util.List; |
| 19 | |
| 20 | import org.onosproject.net.device.DeviceDescriptionDiscovery; |
| 21 | import org.onosproject.net.device.PortDescription; |
| 22 | |
| 23 | /** |
| 24 | * DeviceDescriptionDiscovery used in ODTN. |
| 25 | * |
Yuta HIGUCHI | e9df0c4 | 2018-05-07 16:24:42 -0700 | [diff] [blame] | 26 | * Just declaring certain Annotations will be required. |
Yuta HIGUCHI | 8c6e194 | 2018-04-05 13:40:51 -0700 | [diff] [blame] | 27 | */ |
| 28 | public interface OdtnDeviceDescriptionDiscovery |
| 29 | extends DeviceDescriptionDiscovery { |
| 30 | |
| 31 | /** |
| 32 | * Annotations key, which stores OpenConfig component name. |
| 33 | */ |
| 34 | String OC_NAME = "oc-name"; |
| 35 | |
| 36 | /** |
| 37 | * Annotations key, which stores OpenConfig component type. |
| 38 | */ |
| 39 | String OC_TYPE = "oc-type"; |
| 40 | |
| 41 | // overriding just to make checkstyle happy |
| 42 | @Override |
| 43 | List<PortDescription> discoverPortDetails(); |
| 44 | |
| 45 | } |