private CreateLogicalPortInputImpl(CreateLogicalPortInputBuilder base) { this._attribute = base.getAttribute(); this._fabricId = base.getFabricId(); this._logicalDevice = base.getLogicalDevice(); this._name = base.getName(); switch (base.augmentation.size()) { case 0: this.augmentation = Collections.emptyMap(); break; case 1: final Map.Entry<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.services.rev150930.CreateLogicalPortInput>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.services.rev150930.CreateLogicalPortInput>> e = base.augmentation.entrySet().iterator().next(); this.augmentation = Collections.<java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.services.rev150930.CreateLogicalPortInput>>, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.services.rev150930.CreateLogicalPortInput>>singletonMap(e.getKey(), e.getValue()); break; default : this.augmentation = new HashMap<>(base.augmentation); } }
public CreateLogicalPortInputBuilder addAugmentation(java.lang.Class<? extends Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.services.rev150930.CreateLogicalPortInput>> augmentationType, Augmentation<org.opendaylight.yang.gen.v1.urn.opendaylight.faas.fabric.services.rev150930.CreateLogicalPortInput> augmentation) { if (augmentation == null) { return removeAugmentation(augmentationType); } if (!(this.augmentation instanceof HashMap)) { this.augmentation = new HashMap<>(); } this.augmentation.put(augmentationType, augmentation); return this; }
AccessType at, long accessSegment) { TpId tpId = null; CreateLogicalPortInputBuilder inputBuilder = new CreateLogicalPortInputBuilder(); inputBuilder.setFabricId(fabricId); inputBuilder.setLogicalDevice(lswId); attbuilder.setPortLayer(plb.build()); inputBuilder.setAttribute(attbuilder.build()); Future<RpcResult<CreateLogicalPortOutput>> result = this.fabServiceService.createLogicalPort(inputBuilder.build()); try { RpcResult<CreateLogicalPortOutput> output = result.get();