@Override public void onNodeRemoved(NodeRemoved notification) { LOG.debug("NodeRemoved Notification ..................."); LOG.debug("NodeRef " + notification.getNodeRef()); LOG.debug("----------------------------------------------------------------------"); nodeRemoved.add(notification); }
if (!Objects.equals(_nodeRef, other.getNodeRef())) { return false; if (!e.getValue().equals(other.augmentation(e.getKey()))) { return false;
public NodeRemovedBuilder(NodeRemoved base) { this._nodeRef = base.getNodeRef(); if (base instanceof NodeRemovedImpl) { NodeRemovedImpl impl = (NodeRemovedImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") Map<Class<? extends Augmentation<NodeRemoved>>, Augmentation<NodeRemoved>> aug =((AugmentationHolder<NodeRemoved>) base).augmentations(); if (!aug.isEmpty()) { this.augmentation = new HashMap<>(aug); } } }
public void onNodeRemovedInternal(final NodeRemoved notification) { this.removeNodeConnectors(notification.getNodeRef().getValue()); try { final Node aDNode = NodeMapping.toADNode(notification.getNodeRef()); this.publishNodeUpdate(aDNode, UpdateType.REMOVED, Collections.<Property>emptySet()); } catch (ConstructionException e) { LOG.warn("Failed to construct node for {}, not propagating update", notification.getNodeRef(), e); } }
@Override public void applyOperation(final ReadWriteTransaction tx) { final NodeRef ref = node.getNodeRef(); LOG.debug("removing node : {}", ref.getValue()); tx.delete(LogicalDatastoreType.OPERATIONAL, ref.getValue()); } });
@Override public void onNodeRemoved(final NodeRemoved notification) { Preconditions.checkNotNull(notification); final NodeRef nodeRef = notification.getNodeRef(); final InstanceIdentifier<?> nodeRefIdent = nodeRef.getValue(); final InstanceIdentifier<Node> nodeIdent = nodeRefIdent.firstIdentifierOf(Node.class); if (nodeIdent != null) { disconnectFlowCapableNode(nodeIdent); } }
@Override public void onNodeRemoved(final NodeRemoved notification) { Preconditions.checkNotNull(notification); final NodeRef nodeRef = notification.getNodeRef(); final InstanceIdentifier<?> nodeRefIdent = nodeRef.getValue(); final InstanceIdentifier<Node> nodeIdent = nodeRefIdent.firstIdentifierOf(Node.class); if (nodeIdent != null) { LOG.debug("Received onNodeRemoved for node:{} ", nodeIdent); removeOwnership(InstanceIdentifier.keyOf(nodeIdent).getId()); disconnectFlowCapableNode(nodeIdent); } }