Ayaka Koshibe | 5460d62 | 2015-05-14 12:19:19 -0700 | [diff] [blame] | 1 | package org.onosproject.openflow.controller; |
| 2 | |
| 3 | import java.util.List; |
| 4 | import java.util.Set; |
| 5 | |
| 6 | import 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 | */ |
| 12 | public 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 | } |