return false; if (!Objects.equals(_key, other.getKey())) { return false;
public AutoattachBuilder(Autoattach base) { if (base.getKey() == null) { this._key = new AutoattachKey( base.getAutoattachId() ); this._autoattachId = base.getAutoattachId(); } else { this._key = base.getKey(); this._autoattachId = _key.getAutoattachId(); } this._autoattachExternalIds = base.getAutoattachExternalIds(); this._autoattachUuid = base.getAutoattachUuid(); this._bridgeId = base.getBridgeId(); this._mappings = base.getMappings(); this._systemDescription = base.getSystemDescription(); this._systemName = base.getSystemName(); if (base instanceof AutoattachImpl) { AutoattachImpl impl = (AutoattachImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.Autoattach> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.ovsdb.rev150105.ovsdb.node.attributes.Autoattach>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
private AutoattachKey getAutoAttachKeyToRemove(Node node, UUID autoAttachUuid) { final List<Autoattach> autoAttachList = node.getAugmentation(OvsdbNodeAugmentation.class).getAutoattach(); if (autoAttachList == null || autoAttachList.isEmpty()) { return null; } for (final Autoattach autoAttach : autoAttachList) { if (autoAttach.getAutoattachUuid() .equals(new Uuid(autoAttachUuid.toString()))) { return autoAttach.getKey(); } } return null; } }
final InstanceIdentifier<Autoattach> iid = nodeIId .augmentation(OvsdbNodeAugmentation.class) .child(Autoattach.class, autoAttachEntry.getKey()); transaction.put(LogicalDatastoreType.OPERATIONAL, iid, autoAttachEntry);