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-08-28 18:37:21 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
588f727fb82e3c449d502b39f07ae65b552f1ef0
588f727f
1 parent
22b80519
cleaning
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
22 deletions
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/internal/OFChannelHandler.java
of/ctl/src/main/java/org/onlab/onos/of/drivers/DriverManager.java
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/internal/OFChannelHandler.java
View file @
588f727
...
...
@@ -65,7 +65,6 @@ import org.slf4j.LoggerFactory;
*/
class
OFChannelHandler
extends
IdleStateAwareChannelHandler
{
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
OFChannelHandler
.
class
);
private
static
final
long
DEFAULT_ROLE_TIMEOUT_MS
=
2
*
1000
;
// 10 sec
private
final
Controller
controller
;
private
AbstractOpenFlowSwitch
sw
;
private
long
thisdpid
;
// channelHandler cached value of connected switch id
...
...
of/ctl/src/main/java/org/onlab/onos/of/drivers/DriverManager.java
View file @
588f727
package
org
.
onlab
.
onos
.
of
.
drivers
;
import
java.util.List
;
import
org.onlab.onos.of.controller.Dpid
;
import
org.onlab.onos.of.controller.RoleState
;
...
...
@@ -56,52 +55,39 @@ public final class DriverManager {
+
"Assigning OFSwitchImplBase"
,
desc
);
AbstractOpenFlowSwitch
base
=
new
AbstractOpenFlowSwitch
(
dpid
)
{
@Override
public
void
write
(
List
<
OFMessage
>
msgs
)
{
// TODO Auto-generated method stub
}
@Override
public
void
sendMsg
(
OFMessage
m
)
{
// TODO Auto-generated method stub
channel
.
write
(
m
);
}
@Override
public
Boolean
supportNxRole
()
{
// TODO Auto-generated method stub
return
null
;
return
false
;
}
@Override
public
void
startDriverHandshake
()
{
// TODO Auto-generated method stub
}
public
void
startDriverHandshake
()
{}
@Override
public
void
setFeaturesReply
(
OFFeaturesReply
featuresReply
)
{
// TODO Auto-generated method stub
this
.
features
=
featuresReply
;
}
@Override
public
void
processDriverHandshakeMessage
(
OFMessage
m
)
{
// TODO Auto-generated method stub
}
public
void
processDriverHandshakeMessage
(
OFMessage
m
)
{}
@Override
public
boolean
isDriverHandshakeComplete
()
{
// TODO Auto-generated method stub
return
false
;
return
true
;
}
@Override
public
RoleState
getRole
()
{
// TODO Auto-generated method stub
return
null
;
return
role
;
}
};
base
.
setSwitchDescription
(
desc
);
// XXX S must set counter here - unidentified switch
return
base
;
}
...
...
Please
register
or
login
to post a comment