if (!Objects.equals(_key, other.getKey())) { return false; if (!Objects.equals(_linkRef, other.getLinkRef())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;
public DeviceLinksBuilder(DeviceLinks base) { if (base.getKey() == null) { this._key = new DeviceLinksKey( base.getLinkRef() ); this._linkRef = base.getLinkRef(); } else { this._key = base.getKey(); this._linkRef = _key.getLinkRef(); } if (base instanceof DeviceLinksImpl) { DeviceLinksImpl impl = (DeviceLinksImpl) 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.faas.fabric.rev150930.fabric.attributes.DeviceLinks> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.rev150930.fabric.attributes.DeviceLinks>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
@Override public void fabricCreated(FabricNode fabric) { List<DeviceLinks> links = fabric.getFabricAttribute().getDeviceLinks(); if (links != null) { for (DeviceLinks link : links) { @SuppressWarnings("unchecked") InstanceIdentifier<Link> linkIId = (InstanceIdentifier<Link>) link.getLinkRef().getValue(); } } List<DeviceNodes> devices = fabric.getFabricAttribute().getDeviceNodes(); if (devices != null) { for (DeviceNodes deviceNode : devices) { @SuppressWarnings("unchecked") InstanceIdentifier<Node> deviceIId = (InstanceIdentifier<Node>) deviceNode.getDeviceRef().getValue(); DeviceRole role = deviceNode.getRole(); deviceAdded(deviceIId, role); } } ResourceManager.initResourceManager(fabricid); }