blob: e8657ea0100ef42bc7aa1dec4e3e52801618036e [file] [log] [blame]
Yuta HIGUCHI8c6e1942018-04-05 13:40:51 -07001/*
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 */
16package org.onosproject.odtn.behaviour;
17
18import java.util.List;
19
20import org.onosproject.net.device.DeviceDescriptionDiscovery;
21import org.onosproject.net.device.PortDescription;
22
23/**
24 * DeviceDescriptionDiscovery used in ODTN.
25 *
Yuta HIGUCHIe9df0c42018-05-07 16:24:42 -070026 * Just declaring certain Annotations will be required.
Yuta HIGUCHI8c6e1942018-04-05 13:40:51 -070027 */
28public 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}