blob: 80309509f3a476f881bc98124e6e37c80dc9e89e [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
Yuta HIGUCHI44e3a612018-05-11 15:03:39 -070023import com.google.common.annotations.Beta;
24
Yuta HIGUCHI8c6e1942018-04-05 13:40:51 -070025/**
26 * DeviceDescriptionDiscovery used in ODTN.
27 *
Yuta HIGUCHIe9df0c42018-05-07 16:24:42 -070028 * Just declaring certain Annotations will be required.
Yuta HIGUCHI8c6e1942018-04-05 13:40:51 -070029 */
Yuta HIGUCHI44e3a612018-05-11 15:03:39 -070030@Beta
Yuta HIGUCHI8c6e1942018-04-05 13:40:51 -070031public interface OdtnDeviceDescriptionDiscovery
32 extends DeviceDescriptionDiscovery {
33
34 /**
Yuta HIGUCHI44e3a612018-05-11 15:03:39 -070035 * Annotations key intended for a Port, which stores OpenConfig component name.
Yuta HIGUCHI8c6e1942018-04-05 13:40:51 -070036 */
37 String OC_NAME = "oc-name";
38
39 /**
Yuta HIGUCHI44e3a612018-05-11 15:03:39 -070040 * Annotations key intended for a Port, which stores OpenConfig component type.
Yuta HIGUCHI8c6e1942018-04-05 13:40:51 -070041 */
42 String OC_TYPE = "oc-type";
43
Yuta HIGUCHI44e3a612018-05-11 15:03:39 -070044 /**
45 * Annotations key intended for a Port,
46 * which stores string identifier used to
Yuta HIGUCHI4b11fab2018-05-15 13:03:29 -070047 * logically group Ports corresponding to a transponder, etc.
Yuta HIGUCHI44e3a612018-05-11 15:03:39 -070048 */
Yuta HIGUCHI4b11fab2018-05-15 13:03:29 -070049 String CONNECTION_ID = "odtn-connection-id";
Yuta HIGUCHI44e3a612018-05-11 15:03:39 -070050
51
52 /**
53 * OpenConfig component property name to store,
54 * decimal integer index to be used when creating PortNumber.
55 */
56 String ONOS_PORT_INDEX = "onos-index";
57
Yuta HIGUCHI8c6e1942018-04-05 13:40:51 -070058 // overriding just to make checkstyle happy
59 @Override
60 List<PortDescription> discoverPortDetails();
61
62}