- public void onLldpNbrInfoChange(LldpNbrInfoChange notification) {
- LOG.info("Notification {} received {}", LldpNbrInfoChange.QNAME, notification);
- if (notification.getNotificationType().equals(ResourceNotificationType.ResourceCreation)) {
- linkDiscovery.createR2RLink(nodeId,notification.getResource(),
- notification.getNbrInfo().getRemoteSysName(),
- notification.getNbrInfo().getRemotePortId());
- } else if (notification.getNotificationType().equals(ResourceNotificationType.ResourceDeletion)) {
- linkDiscovery.deleteR2RLink(nodeId,notification.getResource(),
- notification.getNbrInfo().getRemoteSysName(),
- notification.getNbrInfo().getRemotePortId());
- }
+ public void onNotification(@NonNull LldpNbrInfoChange notification) {
+ LOG.info("Notification {} received {} on node {}", LldpNbrInfoChange.QNAME, notification, nodeId);