public CreateLogicalSwitchInputBuilder(CreateLogicalSwitchInput base) { this._fabricId = base.getFabricId(); this._name = base.getName(); this._vni = base.getVni(); this._external = base.isExternal(); if (base instanceof CreateLogicalSwitchInputImpl) { CreateLogicalSwitchInputImpl impl = (CreateLogicalSwitchInputImpl) 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.services.rev150930.CreateLogicalSwitchInput> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.services.rev150930.CreateLogicalSwitchInput>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
final CreateLogicalSwitchOutputBuilder outputBuilder = new CreateLogicalSwitchOutputBuilder(); FabricId fabricId = input.getFabricId(); String name = input.getName(); lswAttr.setName(input.getName()); lswAttr.setLswUuid(new Uuid(uuid)); fabricObj.buildLogicalSwitch(newNodeId, lswAttr, input);
@Override public void buildLogicalSwitch(NodeId nodeid, LswAttributeBuilder lsw, CreateLogicalSwitchInput input) { long segmentId = ResourceManager.getInstance(input.getFabricId()).allocSeg(); lsw.setSegmentId(segmentId); }
@Override public ListenableFuture<RpcResult<CreateLogicalSwitchOutput>> apply(Void submitResult) throws Exception { outputBuilder.setLswUuid(new Uuid(uuid)); outputBuilder.setName(input.getName()); outputBuilder.setNodeId(newNodeId); fabricObj.notifyLogicSwitchCreated(newNodeId, lsw); return Futures.immediateFuture(resultBuilder.withResult(outputBuilder.build()).build()); } }, executor);
if (!Objects.equals(_fabricId, other.getFabricId())) { return false; if (!Objects.equals(_name, other.getName())) { return false; if (!Objects.equals(_vni, other.getVni())) { return false; if (!Objects.equals(_external, other.isExternal())) { return false; if (!e.getValue().equals(other.getAugmentation(e.getKey()))) { return false;