blob: 6e22e7f6bb63ebf4877e24f4715ff7924d8d6d4f [file] [log] [blame]
Andrea Campanellad8d92db2016-01-14 16:24:41 -08001/*
2 *
Brian O'Connor5ab426f2016-04-09 01:19:45 -07003 * * Copyright 2016-present Open Networking Laboratory
Andrea Campanellad8d92db2016-01-14 16:24:41 -08004 * *
5 * * Licensed under the Apache License, Version 2.0 (the "License");
6 * * you may not use this file except in compliance with the License.
7 * * You may obtain a copy of the License at
8 * *
9 * * http://www.apache.org/licenses/LICENSE-2.0
10 * *
11 * * Unless required by applicable law or agreed to in writing, software
12 * * distributed under the License is distributed on an "AS IS" BASIS,
13 * * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * * See the License for the specific language governing permissions and
15 * * limitations under the License.
16 *
17 */
18
19package org.onosproject.net.behaviour;
20
21import org.onosproject.net.device.PortDescription;
22import org.onosproject.net.driver.HandlerBehaviour;
23
24import java.util.List;
25
26/**
27 * Discovers the set of ports from a device through a device specific protocol.
28 * The returned ports are not retrieved from the information stored in ONOS.
Andrea Campanella6c71a052016-04-22 11:56:31 -070029 *
30 * @deprecated 1.6.0 Goldeneye. Use DeviceDescriptionDiscovery instead
Andrea Campanellad8d92db2016-01-14 16:24:41 -080031 */
Andrea Campanella6c71a052016-04-22 11:56:31 -070032@Deprecated
Andrea Campanellad8d92db2016-01-14 16:24:41 -080033public interface PortDiscovery extends HandlerBehaviour {
34
35 /**
36 * Retrieves the set of ports from a device.
Andrea Campanella6c71a052016-04-22 11:56:31 -070037 *
Andrea Campanellad8d92db2016-01-14 16:24:41 -080038 * @return a set of port descriptions.
Andrea Campanella6c71a052016-04-22 11:56:31 -070039 * @deprecated 1.6.0 Goldeneye. Use DeviceDescriptionDiscovery instead
Andrea Campanellad8d92db2016-01-14 16:24:41 -080040 */
Andrea Campanella6c71a052016-04-22 11:56:31 -070041 @Deprecated
Andrea Campanellad8d92db2016-01-14 16:24:41 -080042 List<PortDescription> getPorts();
43}