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
pankaj
2014-10-08 16:41:52 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
915d95b6858f3bafecccb2e64571576b032574f1
915d95b6
2 parents
6005d23e
f10fcf68
Merge branch 'master' of
ssh://gerrit.onlab.us:29418/onos-next
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
4 deletions
cli/src/main/java/org/onlab/onos/cli/net/AddHostToHostIntentCommand.java
cli/src/main/java/org/onlab/onos/cli/net/AddPointToPointIntentCommand.java
providers/openflow/flow/src/main/java/org/onlab/onos/provider/of/flow/impl/OpenFlowRuleProvider.java
cli/src/main/java/org/onlab/onos/cli/net/AddHostToHostIntentCommand.java
View file @
915d95b
...
...
@@ -27,7 +27,7 @@ public class AddHostToHostIntentCommand extends AbstractShellCommand {
required
=
true
,
multiValued
=
false
)
String
two
=
null
;
private
static
long
id
=
1
;
private
static
long
id
=
0x787000
1
;
@Override
protected
void
execute
()
{
...
...
cli/src/main/java/org/onlab/onos/cli/net/AddPointToPointIntentCommand.java
View file @
915d95b
...
...
@@ -14,6 +14,7 @@ import org.onlab.onos.net.intent.Intent;
import
org.onlab.onos.net.intent.IntentId
;
import
org.onlab.onos.net.intent.IntentService
;
import
org.onlab.onos.net.intent.PointToPointIntent
;
import
org.onlab.packet.Ethernet
;
/**
* Installs point-to-point connectivity intents.
...
...
@@ -32,7 +33,7 @@ public class AddPointToPointIntentCommand extends AbstractShellCommand {
required
=
true
,
multiValued
=
false
)
String
egressDeviceString
=
null
;
private
static
long
id
=
1
;
private
static
long
id
=
0x747000
1
;
@Override
protected
void
execute
()
{
...
...
@@ -48,7 +49,9 @@ public class AddPointToPointIntentCommand extends AbstractShellCommand {
PortNumber
.
portNumber
(
getPortNumber
(
egressDeviceString
));
ConnectPoint
egress
=
new
ConnectPoint
(
egressDeviceId
,
egressPortNumber
);
TrafficSelector
selector
=
DefaultTrafficSelector
.
builder
().
build
();
TrafficSelector
selector
=
DefaultTrafficSelector
.
builder
()
.
matchEthType
(
Ethernet
.
TYPE_IPV4
)
.
build
();
TrafficTreatment
treatment
=
DefaultTrafficTreatment
.
builder
().
build
();
Intent
intent
=
...
...
providers/openflow/flow/src/main/java/org/onlab/onos/provider/of/flow/impl/OpenFlowRuleProvider.java
View file @
915d95b
...
...
@@ -344,7 +344,7 @@ public class OpenFlowRuleProvider extends AbstractProvider implements FlowRulePr
public
void
satisfyRequirement
(
Dpid
dpid
)
{
log
.
warn
(
"Satisfaction from switch {}"
,
dpid
);
sws
.
remove
(
controller
.
getSwitch
(
dpid
)
);
sws
.
remove
(
dpid
);
countDownLatch
.
countDown
();
}
...
...
Please
register
or
login
to post a comment