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
Thomas Vachuska
2014-10-29 21:09:10 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e3784c9c0928ba3e09be8b562650bebb4886e0d2
e3784c9c
1 parent
a05c0a29
Added protection against no resources to PathIntentInstaller.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
core/net/src/main/java/org/onlab/onos/net/intent/impl/PathIntentInstaller.java
core/net/src/main/java/org/onlab/onos/net/intent/impl/PathIntentInstaller.java
View file @
e3784c9
...
...
@@ -79,11 +79,14 @@ public class PathIntentInstaller implements IntentInstaller<PathIntent> {
@Override
public
List
<
FlowRuleBatchOperation
>
install
(
PathIntent
intent
)
{
LinkResourceAllocations
allocations
=
allocateBandwidth
(
intent
);
if
(
allocations
==
null
)
{
log
.
debug
(
"Insufficient bandwidth available to install path intent {}"
,
intent
);
return
null
;
if
(
intent
.
resourceRequests
().
length
>
0
)
{
LinkResourceAllocations
allocations
=
allocateBandwidth
(
intent
);
if
(
allocations
==
null
)
{
log
.
debug
(
"Insufficient bandwidth available to install path intent {}"
,
intent
);
return
null
;
}
}
TrafficSelector
.
Builder
builder
=
DefaultTrafficSelector
.
builder
(
intent
.
selector
());
Iterator
<
Link
>
links
=
intent
.
path
().
links
().
iterator
();
...
...
Please
register
or
login
to post a comment