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-16 11:17:14 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
97134c9cfa0567d6ccf915db4fe28fc1940e62a9
97134c9c
2 parents
4774c8f3
7d2e4af1
Merge remote-tracking branch 'origin/master'
Hide 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 @
97134c9
...
...
@@ -34,8 +34,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 @
97134c9
...
...
@@ -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