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-11-10 20:05:48 -0800
Browse Files
Options
Browse Files
Download
Plain Diff
Committed by
Gerrit Code Review
2014-11-10 20:05:48 -0800
Commit
c76f52e03222089edbac2a6a164a9bd2b2031040
c76f52e0
2 parents
26837614
ac8f352d
Merge "Add a constructor in LinkCollectionIntent to have constraints"
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
core/api/src/main/java/org/onlab/onos/net/intent/LinkCollectionIntent.java
core/api/src/main/java/org/onlab/onos/net/intent/LinkCollectionIntent.java
View file @
c76f52e
...
...
@@ -22,6 +22,7 @@ import org.onlab.onos.net.Link;
import
org.onlab.onos.net.flow.TrafficSelector
;
import
org.onlab.onos.net.flow.TrafficTreatment
;
import
java.util.List
;
import
java.util.Set
;
/**
...
...
@@ -50,8 +51,30 @@ public final class LinkCollectionIntent extends ConnectivityIntent {
TrafficTreatment
treatment
,
Set
<
Link
>
links
,
ConnectPoint
egressPoint
)
{
super
(
id
(
LinkCollectionIntent
.
class
,
selector
,
treatment
,
links
,
egressPoint
),
appId
,
resources
(
links
),
selector
,
treatment
);
this
(
appId
,
selector
,
treatment
,
links
,
egressPoint
,
null
);
}
/**
* Creates a new actionable intent capable of funneling the selected
* traffic along the specified convergent tree and out the given egress point
* satisfying the specified constraints.
*
* @param appId application identifier
* @param selector traffic match
* @param treatment action
* @param links traversed links
* @param egressPoint egress point
* @param constraints optional list of constraints
* @throws NullPointerException {@code path} is null
*/
public
LinkCollectionIntent
(
ApplicationId
appId
,
TrafficSelector
selector
,
TrafficTreatment
treatment
,
Set
<
Link
>
links
,
ConnectPoint
egressPoint
,
List
<
Constraint
>
constraints
)
{
super
(
id
(
LinkCollectionIntent
.
class
,
selector
,
treatment
,
links
,
egressPoint
,
constraints
),
appId
,
resources
(
links
),
selector
,
treatment
,
constraints
);
this
.
links
=
links
;
this
.
egressPoint
=
egressPoint
;
}
...
...
Please
register
or
login
to post a comment