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
alshabib
2014-10-23 10:24:28 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
44edb8146d21f2fc0fa645c6bfe0cd5f20c9dc0e
44edb814
2 parents
12288c83
147b2ac3
Merge branch 'master' of
ssh://gerrit.onlab.us:29418/onos-next
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
openflow/ctl/src/main/java/org/onlab/onos/openflow/controller/impl/OFChannelHandler.java
openflow/ctl/src/main/java/org/onlab/onos/openflow/drivers/impl/OFSwitchImplCPqD13.java
openflow/ctl/src/main/java/org/onlab/onos/openflow/controller/impl/OFChannelHandler.java
View file @
44edb81
...
...
@@ -41,7 +41,6 @@ import org.projectfloodlight.openflow.protocol.OFHello;
import
org.projectfloodlight.openflow.protocol.OFHelloElem
;
import
org.projectfloodlight.openflow.protocol.OFMessage
;
import
org.projectfloodlight.openflow.protocol.OFPacketIn
;
import
org.projectfloodlight.openflow.protocol.OFPacketOut
;
import
org.projectfloodlight.openflow.protocol.OFPortDescStatsReply
;
import
org.projectfloodlight.openflow.protocol.OFPortDescStatsRequest
;
import
org.projectfloodlight.openflow.protocol.OFPortStatus
;
...
...
@@ -661,10 +660,9 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
* However, we could be more forgiving
* @param h the channel handler that received the message
* @param m the message
* @throws SwitchStateException
* @throws SwitchStateExeption we always through the execption
* @throws SwitchStateException we always throw the exception
*/
// needs to be protected because enum members are ac
ut
ally subclasses
// needs to be protected because enum members are ac
tu
ally subclasses
protected
void
illegalMessageReceived
(
OFChannelHandler
h
,
OFMessage
m
)
throws
SwitchStateException
{
String
msg
=
getSwitchStateMessage
(
h
,
m
,
...
...
@@ -1025,7 +1023,9 @@ class OFChannelHandler extends IdleStateAwareChannelHandler {
// all state for the original switch (with the same dpid),
// which we obviously don't want.
log
.
info
(
"{}:removal called"
,
getSwitchInfoString
());
sw
.
removeConnectedSwitch
();
if
(
sw
!=
null
)
{
sw
.
removeConnectedSwitch
();
}
}
else
{
// A duplicate was disconnected on this ChannelHandler,
// this is the same switch reconnecting, but the original state was
...
...
openflow/ctl/src/main/java/org/onlab/onos/openflow/drivers/impl/OFSwitchImplCPqD13.java
View file @
44edb81
...
...
@@ -1188,7 +1188,8 @@ public class OFSwitchImplCPqD13 extends AbstractOpenFlowSwitch {
.
setHardTimeout
(
0
)
.
setXid
(
getNextTransactionId
())
.
build
();
sendMsg
(
tableMissEntry
);
write
(
tableMissEntry
);
}
private
void
sendBarrier
(
boolean
finalBarrier
)
{
...
...
@@ -1200,7 +1201,8 @@ public class OFSwitchImplCPqD13 extends AbstractOpenFlowSwitch {
.
buildBarrierRequest
()
.
setXid
(
xid
)
.
build
();
sendMsg
(
br
);
write
(
br
);
}
@Override
...
...
@@ -1210,7 +1212,7 @@ public class OFSwitchImplCPqD13 extends AbstractOpenFlowSwitch {
@Override
public
void
write
(
OFMessage
msg
)
{
this
.
channel
.
write
(
msg
);
this
.
channel
.
write
(
Collections
.
singletonList
(
msg
)
);
}
...
...
Please
register
or
login
to post a comment