*/
package org.opendaylight.transportpce.networkmodel;
+import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;
import java.util.stream.Collectors;
-
import javax.annotation.Nonnull;
-
import org.opendaylight.mdsal.binding.api.DataBroker;
import org.opendaylight.mdsal.binding.api.DataObjectModification;
import org.opendaylight.mdsal.binding.api.DataObjectModification.ModificationType;
this.registrations22 = new ConcurrentHashMap<>();
}
+ @SuppressFBWarnings(
+ value = "RV_RETURN_VALUE_IGNORED",
+ justification = "nothing to verify once rpc has been sent")
private void onDeviceConnected(final String nodeId, String openRoadmVersion) {
LOG.info("onDeviceConnected: {}", nodeId);
- LOG.info(StringConstants.OPENROADM_DEVICE_VERSION_1_2_1);
- LOG.info(openRoadmVersion);
Optional<MountPoint> mountPointOpt = this.deviceTransactionManager.getDeviceMountPoint(nodeId);
MountPoint mountPoint;
if (mountPointOpt.isPresent()) {
accessDeOperationasNotificationListenerRegistration =
notificationService.get().registerNotificationListener(deOperationsListener);
- final OrgOpenroadmDeviceListener deviceListener = new DeviceListener();
+ final OrgOpenroadmDeviceListener deviceListener = new DeviceListener(this.deviceTransactionManager,
+ nodeId, this.networkModelService);
LOG.info("Registering notification listener on OrgOpenroadmDeviceListener for node: {}", nodeId);
final ListenerRegistration<OrgOpenroadmDeviceListener> accessDeviceNotificationListenerRegistration =
notificationService.get().registerNotificationListener(deviceListener);
}
@Override
- @SuppressWarnings("checkstyle:FallThrough")
+ @SuppressFBWarnings(
+ value = "SF_SWITCH_FALLTHROUGH",
+ justification = "intentional fallthrough")
public void onDataTreeChanged(@Nonnull Collection<DataTreeModification<Node>> changes) {
LOG.info("onDataTreeChanged");
for (DataTreeModification<Node> change : changes) {
switch (rootNode.getModificationType()) {
case WRITE:
LOG.info("Node added: {}", nodeId);
+ //fallthrough
case SUBTREE_MODIFIED:
NetconfNodeConnectionStatus.ConnectionStatus connectionStatus =
netconfNode.getConnectionStatus();