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 16:09:46 -0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a567124e9ec49a9c3e61934071e9d6240c1d1d54
a567124e
1 parent
6953cf12
Refactor: Simplify method
Change-Id: I2fc8bed7ab41d3577cb8bb31af48941a2d738010
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 @
a567124
...
...
@@ -446,25 +446,22 @@ public class OpticalCircuitIntentCompiler implements IntentCompiler<OpticalCircu
}
private
Pair
<
OchPort
,
OchPort
>
findPorts
(
ConnectPoint
src
,
ConnectPoint
dst
,
CltSignalType
signalType
)
{
Pair
<
OchPort
,
OchPort
>
ochPorts
=
null
;
// According to the OpticalCircuitIntent's signalType find OCH ports with available TributarySlots resources
switch
(
signalType
)
{
case
CLT_1GBE:
case
CLT_10GBE:
// First search for OCH ports with OduSignalType of ODU2. If not found - search for those with ODU4
ochPorts
=
findPorts
(
src
,
dst
,
OduSignalType
.
ODU2
);
Pair
<
OchPort
,
OchPort
>
ochPorts
=
findPorts
(
src
,
dst
,
OduSignalType
.
ODU2
);
if
(
ochPorts
==
null
)
{
ochPorts
=
findPorts
(
src
,
dst
,
OduSignalType
.
ODU4
);
}
break
;
return
ochPorts
;
case
CLT_100GBE:
ochPorts
=
findPorts
(
src
,
dst
,
OduSignalType
.
ODU4
);
break
;
return
findPorts
(
src
,
dst
,
OduSignalType
.
ODU4
);
case
CLT_40GBE:
default
:
break
;
return
null
;
}
return
ochPorts
;
}
private
Pair
<
OchPort
,
OchPort
>
findPorts
(
ConnectPoint
src
,
ConnectPoint
dst
,
OduSignalType
ochPortSignalType
)
{
...
...
Please
register
or
login
to post a comment