commit | 88194c32ffcabbb3e17cbb5aff35d3018ec16203 | [log] [tgz] |
---|---|---|
author | Marc De Leenheer <marc@onlab.us> | Fri May 29 22:10:59 2015 -0700 |
committer | Marc De Leenheer <marc@onlab.us> | Mon Jun 01 10:22:54 2015 -0700 |
tree | 4126300c91c00bfc7e9dd4b760f843340d2d71b4 | |
parent | eac4abac20d861b8286577726ca1b92e0e5883ee [diff] [blame] |
Fix optical port types in device store (ONOS-2046). Fix CLI add-optical-intent cmd for TL1-based devices (ONOS-2045). Change-Id: I4ba79476104d9906707cc7cc683fedd4ce4343bb
diff --git a/core/api/src/main/java/org/onosproject/net/resource/device/DeviceResourceStore.java b/core/api/src/main/java/org/onosproject/net/resource/device/DeviceResourceStore.java index 31cab02..a52a843 100644 --- a/core/api/src/main/java/org/onosproject/net/resource/device/DeviceResourceStore.java +++ b/core/api/src/main/java/org/onosproject/net/resource/device/DeviceResourceStore.java
@@ -22,10 +22,17 @@ import java.util.Set; public interface DeviceResourceStore { + /** + * Returns unallocated ports on the given device. + * + * @param deviceId device ID + * @return set of unallocated ports + */ Set<Port> getFreePorts(DeviceId deviceId); /** * Allocates the given ports to the given intent. + * * @param ports set of ports to allocate * @param intentId intent ID * @return true if allocation was successful, false otherwise