commit | e7e4bd5825fa02066f1f18ab958ef21c0fc4948e | [log] [tgz] |
---|---|---|
author | Brian O'Connor <bocon@onlab.us> | Thu Oct 23 13:36:23 2014 -0700 |
committer | Brian O'Connor <bocon@onlab.us> | Thu Oct 23 13:36:59 2014 -0700 |
tree | b1957ea52826fd347b700b7f533798f3c3b88cf8 | |
parent | 8d9d38f3e92c8dbe2154ef70bd4f5b71c25730e3 [diff] |
adding Get by IntentId to LinkResourceService Change-Id: Ic27daef6e3e55a7d2301f8009432d6c216e1523d
diff --git a/core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceService.java b/core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceService.java index 1ea5723..973fa97 100644 --- a/core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceService.java +++ b/core/api/src/main/java/org/onlab/onos/net/resource/LinkResourceService.java
@@ -30,6 +30,8 @@ */ Iterable<LinkResourceAllocations> getAllocations(); + LinkResourceAllocations getAllocation(IntentId intentId); + /** * Returns all allocated resources to given link. *
diff --git a/core/net/src/main/java/org/onlab/onos/net/resource/LinkResourceManager.java b/core/net/src/main/java/org/onlab/onos/net/resource/LinkResourceManager.java index cb14abc..7d4da02 100644 --- a/core/net/src/main/java/org/onlab/onos/net/resource/LinkResourceManager.java +++ b/core/net/src/main/java/org/onlab/onos/net/resource/LinkResourceManager.java
@@ -48,6 +48,12 @@ } @Override + public LinkResourceAllocations getAllocation(IntentId intentId) { + // TODO Auto-generated method stub + return null; + } + + @Override public Iterable<LinkResourceAllocations> getAllocations(Link link) { // TODO Auto-generated method stub return null;