blob: bbc9fbedaed413ca50b0eedbd8c812c1312b8bb7 [file] [log] [blame]
Michele Santuaric372c222017-01-12 09:41:25 +01001/*
Brian O'Connora09fe5b2017-08-03 21:12:30 -07002 * Copyright 2017-present Open Networking Foundation
Michele Santuaric372c222017-01-12 09:41:25 +01003 *
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 */
16
17package org.onosproject.net.behaviour;
18
19import org.onosproject.net.DeviceId;
20import org.onosproject.net.device.DeviceDescription;
21import org.onosproject.net.driver.HandlerBehaviour;
22
23import java.util.Set;
24
25/**
26 * Handler behaviour capable of managing a set of forwarding plane devices.
27 */
28public interface DevicesDiscovery extends HandlerBehaviour {
29
30 /**
31 * Returns a set of proxied device ids.
32 *
33 * @return a set of deviceId
34 */
35 Set<DeviceId> deviceIds();
36
37 /**
38 * Returns a device description appropriately annotated to support
39 * downstream model extension via projections of the resulting device,
40 * as in the following example.
41 * This process permits to discovery the description of a proxied device by
42 * leveraging on the device ids discovered
43 * @see org.onosproject.net.behaviour.DevicesDiscovery#deviceDetails(DeviceId)
44 *
45 * @param deviceId the device Id of the device of interest
46 * @return annotated device description
47 */
48 DeviceDescription deviceDetails(DeviceId deviceId);
49}