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
2016-01-28 09:22:10 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
763be9211809ff24c2334ba6120e281827c6f32c
763be921
1 parent
51539b85
Avoid using fully qualified name
Change-Id: I273ccfe4bded393ec17128f485842c458cbffac4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
2 deletions
core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java
core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalConnectivityIntentCompiler.java
View file @
763be92
...
...
@@ -111,8 +111,7 @@ public class OpticalConnectivityIntentCompiler implements IntentCompiler<Optical
// Reserve OCh ports
Resource
srcPortResource
=
Resource
.
discrete
(
src
.
deviceId
(),
src
.
port
()).
resource
();
Resource
dstPortResource
=
Resource
.
discrete
(
dst
.
deviceId
(),
dst
.
port
()).
resource
();
List
<
org
.
onosproject
.
net
.
newresource
.
ResourceAllocation
>
allocation
=
resourceService
.
allocate
(
intent
.
id
(),
srcPortResource
,
dstPortResource
);
List
<
ResourceAllocation
>
allocation
=
resourceService
.
allocate
(
intent
.
id
(),
srcPortResource
,
dstPortResource
);
if
(
allocation
.
isEmpty
())
{
throw
new
IntentCompilationException
(
"Unable to reserve ports for intent "
+
intent
);
}
...
...
Please
register
or
login
to post a comment