Toggle navigation
Toggle navigation
This project
Loading...
Sign in
홍길동
/
onos
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
Sho SHIMIZU
2015-07-02 11:35:34 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
716c8e9c65897ff33095cd0773f52443efcfd546
716c8e9c
1 parent
ac63c30f
Avoid down cast
Change-Id: I8e85ca3ac5df8b14f52f4c4e0606bd570853d92a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
core/net/src/main/java/org/onosproject/net/resource/impl/LinkResourceManager.java
core/net/src/main/java/org/onosproject/net/resource/impl/LinkResourceManager.java
View file @
716c8e9
...
...
@@ -15,6 +15,7 @@
*/
package
org
.
onosproject
.
net
.
resource
.
impl
;
import
com.google.common.collect.Sets
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Component
;
import
org.apache.felix.scr.annotations.Deactivate
;
...
...
@@ -284,9 +285,8 @@ public class LinkResourceManager implements LinkResourceService {
LinkResourceAllocations
allocations
)
{
checkPermission
(
Permission
.
LINK_READ
);
Set
<
ResourceRequest
>
result
=
new
HashSet
<>();
Set
<
ResourceAllocation
>
allocatedRes
=
allocations
.
getResourceAllocation
(
link
);
result
=
(
Set
<
ResourceRequest
>)
getAvailableResources
(
link
);
Set
<
ResourceRequest
>
result
=
Sets
.
newHashSet
(
getAvailableResources
(
link
)
);
result
.
addAll
(
allocatedRes
);
return
result
;
}
...
...
Please
register
or
login
to post a comment