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
tom
2014-09-08 01:58:45 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6901237ddf03d0786e2ac58e59a4d59dd58cb5da
6901237d
1 parent
6d2a43e4
Added @Component back to OpenFlowControllerImpl
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/Controller.java
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/OpenFlowControllerImpl.java
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/Controller.java
View file @
6901237
...
...
@@ -232,7 +232,7 @@ public class Controller {
}
public
void
start
(
OpenFlowAgent
ag
)
{
log
.
info
(
"
Initialising OpenFlow Lib and
IO"
);
log
.
info
(
"
Starting OpenFlow
IO"
);
this
.
agent
=
ag
;
this
.
init
(
new
HashMap
<
String
,
String
>());
this
.
run
();
...
...
@@ -240,6 +240,7 @@ public class Controller {
public
void
stop
()
{
log
.
info
(
"Stopping OpenFlow IO"
);
execFactory
.
shutdown
();
cg
.
close
();
}
...
...
of/ctl/src/main/java/org/onlab/onos/of/controller/impl/OpenFlowControllerImpl.java
View file @
6901237
...
...
@@ -6,7 +6,9 @@ import java.util.concurrent.locks.Lock;
import
java.util.concurrent.locks.ReentrantLock
;
import
org.apache.felix.scr.annotations.Activate
;
import
org.apache.felix.scr.annotations.Component
;
import
org.apache.felix.scr.annotations.Deactivate
;
import
org.apache.felix.scr.annotations.Service
;
import
org.onlab.onos.of.controller.Dpid
;
import
org.onlab.onos.of.controller.OpenFlowController
;
import
org.onlab.onos.of.controller.OpenFlowSwitch
;
...
...
@@ -19,6 +21,8 @@ import org.projectfloodlight.openflow.protocol.OFPortStatus;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
@Component
(
immediate
=
true
)
@Service
public
class
OpenFlowControllerImpl
implements
OpenFlowController
{
private
static
final
Logger
log
=
...
...
Please
register
or
login
to post a comment