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-02-29 13:54:08 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0a8332c5a2a89452bb60cb601115a442f64be932
0a8332c5
1 parent
caf0b341
Refactor: Inline method
Change-Id: I2bfeadebd63a9e60dc9bf0f97a9390e456abc3b8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
core/net/src/main/java/org/onosproject/net/intent/impl/compiler/OpticalCircuitIntentCompiler.java
View file @
0a8332c
...
...
@@ -31,7 +31,6 @@ import org.onosproject.core.CoreService;
import
org.onosproject.net.AnnotationKeys
;
import
org.onosproject.net.CltSignalType
;
import
org.onosproject.net.ConnectPoint
;
import
org.onosproject.net.DeviceId
;
import
org.onosproject.net.OchPort
;
import
org.onosproject.net.OduCltPort
;
import
org.onosproject.net.OduSignalId
;
...
...
@@ -553,13 +552,11 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler<OpticalCircu
return
(
int
)
tributarySlots
.
stream
().
findFirst
().
get
().
index
();
}
private
boolean
isTributarySlotBehaviourSupported
(
DeviceId
deviceId
)
{
Driver
driver
=
driverService
.
getDriver
(
deviceId
);
return
(
driver
!=
null
&&
driver
.
hasBehaviour
(
TributarySlotQuery
.
class
));
}
private
boolean
isMultiplexingSupported
(
ConnectPoint
cp
)
{
return
isTributarySlotBehaviourSupported
(
cp
.
deviceId
())
&&
staticPort
(
cp
)
==
null
;
Driver
driver
=
driverService
.
getDriver
(
cp
.
deviceId
());
return
driver
!=
null
&&
driver
.
hasBehaviour
(
TributarySlotQuery
.
class
)
&&
staticPort
(
cp
)
==
null
;
}
/**
...
...
Please
register
or
login
to post a comment