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-09-16 10:36:34 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
89e43ef4ea66981c9830e51640ea14134d80fcd7
89e43ef4
1 parent
818d57cc
link discovery clean up
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
core/api/src/main/java/org/onlab/onos/net/flow/Instruction.java
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/LinkDiscovery.java
core/api/src/main/java/org/onlab/onos/net/flow/Instruction.java
View file @
89e43ef
...
...
@@ -35,8 +35,7 @@ public interface Instruction {
// to create specific instructions.
/**
* Returns the type of instruction not to be confused
* with the instruction's java type.
* Returns the type of instruction.
* @return type of instruction
*/
public
Type
type
();
...
...
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/LinkDiscovery.java
View file @
89e43ef
...
...
@@ -228,6 +228,9 @@ public class LinkDiscovery implements TimerTask {
* @return Packet_out message with LLDP data
*/
private
OFPacketOut
createLLDPPacketOut
(
final
OFPortDesc
port
)
{
if
(
port
==
null
)
{
return
null
;
}
OFPacketOut
.
Builder
packetOut
=
this
.
ofFactory
.
buildPacketOut
();
packetOut
.
setBufferId
(
OFBufferId
.
NO_BUFFER
);
OFAction
act
=
this
.
ofFactory
.
actions
().
buildOutput
()
...
...
@@ -248,6 +251,9 @@ public class LinkDiscovery implements TimerTask {
* @return Packet_out message with LLDP data
*/
private
OFPacketOut
createBDDPPacketOut
(
final
OFPortDesc
port
)
{
if
(
port
==
null
)
{
return
null
;
}
OFPacketOut
.
Builder
packetOut
=
sw
.
factory
().
buildPacketOut
();
packetOut
.
setBufferId
(
OFBufferId
.
NO_BUFFER
);
...
...
@@ -267,6 +273,9 @@ public class LinkDiscovery implements TimerTask {
private
void
sendMsg
(
final
OFMessage
msg
)
{
if
(
msg
==
null
)
{
return
;
}
this
.
sw
.
sendMsg
(
msg
);
}
...
...
@@ -389,8 +398,8 @@ public class LinkDiscovery implements TimerTask {
}
public
void
stop
()
{
removeAllPorts
();
timeout
.
cancel
();
removeAllPorts
();
}
}
...
...
Please
register
or
login
to post a comment