blob: 7847cd5a984d6289240199aa44b6f55eaeb5c827 [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.
29 */
30public interface PortDiscovery extends HandlerBehaviour {
31
32 /**
33 * Retrieves the set of ports from a device.
34 * @return a set of port descriptions.
35 */
36 List<PortDescription> getPorts();
37}