blob: 7f869f9d8e63a8bc728bcb9b4aeb179f38bc5376 [file] [log] [blame]
Andrea Campanellad8d92db2016-01-14 16:24:41 -08001/*
Ray Milkey85267002016-11-16 11:06:35 -08002 * Copyright 2016-present Open Networking Laboratory
Andrea Campanellad8d92db2016-01-14 16:24:41 -08003 *
Ray Milkey85267002016-11-16 11:06:35 -08004 * 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
Andrea Campanellad8d92db2016-01-14 16:24:41 -08007 *
Ray Milkey85267002016-11-16 11:06:35 -08008 * 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.
Andrea Campanellad8d92db2016-01-14 16:24:41 -080015 */
16
17package org.onosproject.net.behaviour;
18
19import org.onosproject.net.device.PortDescription;
20import org.onosproject.net.driver.HandlerBehaviour;
21
22import java.util.List;
23
24/**
25 * Discovers the set of ports from a device through a device specific protocol.
26 * The returned ports are not retrieved from the information stored in ONOS.
Andrea Campanella6c71a052016-04-22 11:56:31 -070027 *
28 * @deprecated 1.6.0 Goldeneye. Use DeviceDescriptionDiscovery instead
Andrea Campanellad8d92db2016-01-14 16:24:41 -080029 */
Andrea Campanella6c71a052016-04-22 11:56:31 -070030@Deprecated
Andrea Campanellad8d92db2016-01-14 16:24:41 -080031public interface PortDiscovery extends HandlerBehaviour {
32
33 /**
34 * Retrieves the set of ports from a device.
Andrea Campanella6c71a052016-04-22 11:56:31 -070035 *
Andrea Campanellad8d92db2016-01-14 16:24:41 -080036 * @return a set of port descriptions.
Andrea Campanella6c71a052016-04-22 11:56:31 -070037 * @deprecated 1.6.0 Goldeneye. Use DeviceDescriptionDiscovery instead
Andrea Campanellad8d92db2016-01-14 16:24:41 -080038 */
Andrea Campanella6c71a052016-04-22 11:56:31 -070039 @Deprecated
Andrea Campanellad8d92db2016-01-14 16:24:41 -080040 List<PortDescription> getPorts();
Ray Milkey85267002016-11-16 11:06:35 -080041}