send LLDP probe only to non-Logical ports

Change-Id: I93995a718c9fcf5352a015c0cdc011f5876c9730
This commit is contained in:
Yuta HIGUCHI 2014-10-25 21:33:07 -07:00
parent 305ec83471
commit 00b476fadb

View File

@ -77,7 +77,9 @@ public class LLDPLinkProvider extends AbstractProvider implements LinkProvider {
providerService, useBDDP);
discoverers.put(device.id(), ld);
for (Port p : deviceService.getPorts(device.id())) {
ld.addPort(p);
if (!p.number().isLogical()) {
ld.addPort(p);
}
}
}
@ -122,7 +124,9 @@ public class LLDPLinkProvider extends AbstractProvider implements LinkProvider {
if (ld == null) {
return;
}
ld.addPort(port);
if (!port.number().isLogical()) {
ld.addPort(port);
}
} else {
ConnectPoint point = new ConnectPoint(device.id(),
port.number());