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 00:12:10 -0700
Browse Files
Options
Browse Files
Download
Plain Diff
Commit
aaa50a6f38f54b59bf068917835456c4f2aed1c7
aaa50a6f
2 parents
3897c03d
818d57cc
Merge remote-tracking branch 'origin/master'
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
10 deletions
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/LinkDiscovery.java
providers/of/link/src/main/java/org/onlab/onos/provider/of/link/impl/LinkDiscovery.java
View file @
aaa50a6
...
...
@@ -158,7 +158,6 @@ public class LinkDiscovery implements TimerTask {
}
this
.
slowPorts
.
add
(
port
.
getPortNo
().
getPortNumber
());
this
.
slowIterator
=
this
.
slowPorts
.
iterator
();
}
}
...
...
@@ -176,7 +175,6 @@ public class LinkDiscovery implements TimerTask {
synchronized
(
this
)
{
if
(
this
.
slowPorts
.
contains
(
portnum
))
{
this
.
slowPorts
.
remove
(
portnum
);
this
.
slowIterator
=
this
.
slowPorts
.
iterator
();
}
else
if
(
this
.
fastPorts
.
contains
(
portnum
))
{
this
.
fastPorts
.
remove
(
portnum
);
...
...
@@ -209,7 +207,6 @@ public class LinkDiscovery implements TimerTask {
this
.
log
.
debug
(
"Setting slow port to fast: {}:{}"
,
this
.
sw
.
getId
(),
portNumber
);
this
.
slowPorts
.
remove
(
portNumber
);
this
.
slowIterator
=
this
.
slowPorts
.
iterator
();
this
.
fastPorts
.
add
(
portNumber
);
this
.
portProbeCount
.
put
(
portNumber
,
new
AtomicInteger
(
0
));
}
else
{
...
...
@@ -277,7 +274,7 @@ public class LinkDiscovery implements TimerTask {
return
"LinkDiscovery "
+
this
.
sw
.
getStringId
();
}
/*
/*
*
* Handles an incoming LLDP packet. Creates link in topology and sends ACK
* to port where LLDP originated.
*/
...
...
@@ -349,7 +346,6 @@ public class LinkDiscovery implements TimerTask {
// Update fast and slow ports
fastIterator
.
remove
();
this
.
slowPorts
.
add
(
portNumber
);
this
.
slowIterator
=
this
.
slowPorts
.
iterator
();
this
.
portProbeCount
.
remove
(
portNumber
);
// Remove link from topology
...
...
@@ -363,11 +359,9 @@ public class LinkDiscovery implements TimerTask {
}
// send a probe for the next slow port
if
(
this
.
slowPorts
.
size
()
>
0
)
{
if
(!
this
.
slowIterator
.
hasNext
())
{
this
.
slowIterator
=
this
.
slowPorts
.
iterator
();
}
if
(
this
.
slowIterator
.
hasNext
())
{
if
(!
this
.
slowPorts
.
isEmpty
())
{
this
.
slowIterator
=
this
.
slowPorts
.
iterator
();
while
(
this
.
slowIterator
.
hasNext
())
{
final
int
portNumber
=
this
.
slowIterator
.
next
();
this
.
log
.
debug
(
"sending slow probe to port {}"
,
portNumber
);
OFPortDesc
port
=
findPort
(
portNumber
);
...
...
Please
register
or
login
to post a comment