blob: b78124b889ed235844a4a75fc5e899cf063e412a [file] [log] [blame]
Ayaka Koshibe5460d622015-05-14 12:19:19 -07001package org.onosproject.openflow.controller;
2
3import java.util.List;
4import java.util.Set;
5
6import org.projectfloodlight.openflow.protocol.OFObject;
7
8/**
9 * An interface implemented by OpenFlow devices that enables providers to
10 * retrieve ports based on port property.
11 */
12public interface WithTypedPorts {
13
14 /**
15 * Return a list of interfaces (ports) of the type associated with this
16 * OpenFlow switch.
17 *
18 * @param type The port description property type of requested ports
19 * @return A potentially empty list of ports.
20 */
21 List<? extends OFObject> getPortsOf(PortDescPropertyType type);
22
23 /**
24 * Returns the port property types supported by the driver implementing this
25 * interface.
26 *
27 * @return A set of port property types
28 */
29 Set<PortDescPropertyType> getPortTypes();
30}