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
2015-07-28 13:41:18 -0700
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
40ffc149b523ae2f96b43f945ae09418b3527904
40ffc149
1 parent
d494985d
Move misleading log
Change-Id: I11fa0e67ecf724a3ad004d0e916158be59e79cbf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LinkDiscovery.java
providers/lldp/src/main/java/org/onosproject/provider/lldp/impl/LinkDiscovery.java
View file @
40ffc14
...
...
@@ -141,9 +141,6 @@ public class LinkDiscovery implements TimerTask {
* @param port the port
*/
public
void
addPort
(
final
Port
port
)
{
this
.
log
.
debug
(
"Sending init probe to port {}@{}"
,
port
.
number
().
toLong
(),
device
.
id
());
boolean
newPort
=
false
;
synchronized
(
this
)
{
if
(!
containsPort
(
port
.
number
().
toLong
()))
{
...
...
@@ -154,6 +151,8 @@ public class LinkDiscovery implements TimerTask {
boolean
isMaster
=
mastershipService
.
getLocalRole
(
device
.
id
())
==
MASTER
;
if
(
newPort
&&
isMaster
)
{
this
.
log
.
debug
(
"Sending init probe to port {}@{}"
,
port
.
number
().
toLong
(),
device
.
id
());
sendProbes
(
port
.
number
().
toLong
());
}
}
...
...
Please
register
or
login
to post a comment