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
Jonathan Hart
2014-10-23 08:33:33 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
43ef46fbadc1f63ed564821556aaf7be433bf9aa
43ef46fb
1 parent
9cbdec40
Shut LinkDiscovery up
Change-Id: I59dbb008014969476c8180f7a2b09a78a69519a5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
providers/lldp/src/main/java/org/onlab/onos/provider/lldp/impl/LinkDiscovery.java
providers/lldp/src/main/java/org/onlab/onos/provider/lldp/impl/LinkDiscovery.java
View file @
43ef46f
...
...
@@ -217,7 +217,7 @@ public class LinkDiscovery implements TimerTask {
final
PortNumber
srcPort
=
PortNumber
.
portNumber
(
onoslldp
.
getPort
());
final
DeviceId
srcDeviceId
=
DeviceId
.
deviceId
(
onoslldp
.
getDeviceString
());
final
DeviceId
dstDeviceId
=
context
.
inPacket
().
receivedFrom
().
deviceId
();
this
.
ackProbe
(
src
Port
.
toLong
());
this
.
ackProbe
(
dst
Port
.
toLong
());
ConnectPoint
src
=
new
ConnectPoint
(
srcDeviceId
,
srcPort
);
ConnectPoint
dst
=
new
ConnectPoint
(
dstDeviceId
,
dstPort
);
...
...
@@ -245,7 +245,7 @@ public class LinkDiscovery implements TimerTask {
*/
@Override
public
void
run
(
final
Timeout
t
)
{
this
.
log
.
debug
(
"sending probes"
);
this
.
log
.
trace
(
"sending probes"
);
synchronized
(
this
)
{
final
Iterator
<
Long
>
fastIterator
=
this
.
fastPorts
.
iterator
();
Long
portNumber
;
...
...
@@ -256,7 +256,7 @@ public class LinkDiscovery implements TimerTask {
.
getAndIncrement
();
if
(
probeCount
<
LinkDiscovery
.
MAX_PROBE_COUNT
)
{
this
.
log
.
debug
(
"sending fast probe to port"
);
this
.
log
.
trace
(
"sending fast probe to port"
);
sendProbes
(
portNumber
);
}
else
{
// Update fast and slow ports
...
...
@@ -278,7 +278,7 @@ public class LinkDiscovery implements TimerTask {
Iterator
<
Long
>
slowIterator
=
this
.
slowPorts
.
iterator
();
while
(
slowIterator
.
hasNext
())
{
portNumber
=
slowIterator
.
next
();
this
.
log
.
debug
(
"sending slow probe to port {}"
,
portNumber
);
this
.
log
.
trace
(
"sending slow probe to port {}"
,
portNumber
);
sendProbes
(
portNumber
);
...
...
Please
register
or
login
to post a comment