@Override public <T extends DataObject> void merge(final LogicalDatastoreType store, final InstanceIdentifier<T> path, final T data) { delegate.merge(store, path, data); }
@Override public void applyOperation(ReadWriteTransaction tx) { tx.merge(LogicalDatastoreType.OPERATIONAL, buildNodeIID, hostNode, true); } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.merge(LogicalDatastoreType.OPERATIONAL, buildLinkIID, linkNode, true); } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.merge(LogicalDatastoreType.OPERATIONAL, buildNodeIID, hostNode, true); } });
@Override public <T extends DataObject> void merge(final LogicalDatastoreType store, final InstanceIdentifier<T> path, final T data, final boolean createMissingParents) { delegate.merge(store, path, data, createMissingParents); }
@Override public void applyOperation(ReadWriteTransaction tx) { tx.merge(LogicalDatastoreType.OPERATIONAL, buildNodeIID, hostNode, true); } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.merge(LogicalDatastoreType.OPERATIONAL, buildNodeIID, hostNode, true); } });
@Override public void applyOperation(ReadWriteTransaction transaction) { transaction.merge(LogicalDatastoreType.OPERATIONAL, iiToTopologyNode, node, true); } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.merge(LogicalDatastoreType.OPERATIONAL, buildLinkIID, linkNode, true); } });
@Override public void applyOperation(ReadWriteTransaction tx) { tx.merge(LogicalDatastoreType.OPERATIONAL, lIID, l, true); } });
/** * {@inheritDoc} */ @Override protected void execute(ReadWriteTransaction tx) { LogicalDatastoreType oper = LogicalDatastoreType.OPERATIONAL; tx.merge(oper, targetPath, targetData, true); }
@Override public void applyOperation(final ReadWriteTransaction tx) { final FlowCapableNode augment = InventoryMapping.toInventoryAugment(flowNode); LOG.debug("updating node :{} ", path); tx.merge(LogicalDatastoreType.OPERATIONAL, path, augment, true); } });
@Override public void putOperationalData(final InstanceIdentifier<? extends DataObject> path, final DataObject data) { final boolean previouslyRemoved = posponedRemovedOperational.remove(path); @SuppressWarnings({ "rawtypes", "unchecked" }) final InstanceIdentifier<DataObject> castedPath = (InstanceIdentifier) path; if(previouslyRemoved) { delegate.put(LogicalDatastoreType.OPERATIONAL, castedPath, data,true); } else { delegate.merge(LogicalDatastoreType.OPERATIONAL, castedPath, data,true); } }
@Override public void applyOperation(final ReadWriteTransaction transaction) { final Link link = toTopologyLink(notification); final InstanceIdentifier<Link> path = TopologyManagerUtil.linkPath(link, iiToTopology); transaction.merge(LogicalDatastoreType.OPERATIONAL, path, link, true); }
private void merge(ReadWriteTransaction rwTx) { InterfaceBuilder interfaceBuilder = getInterfaceBuilder(); rwTx.merge(LogicalDatastoreType.CONFIGURATION, VppIidFactory.getInterfaceIID(interfaceBuilder.getKey()), interfaceBuilder.build()); }
/** * {@inheritDoc} */ @Override public Void execute(TxContext ctx) throws VTNException { ReadWriteTransaction tx = ctx.getReadWriteTransaction(); LogicalDatastoreType ostore = LogicalDatastoreType.OPERATIONAL; VtnConfigBuilder builder = new VtnConfigBuilder(). setInitState(Boolean.TRUE); tx.merge(ostore, CONFIG_IDENT, builder.build(), true); return null; }
private void ensureTableFowHashIdMapping(final ReadWriteTransaction tx) { if( ! tableEnsured) { ensureTable(tx, tableKey.getId(), tableRef); final FlowHashIdMapping emptyMapping = new FlowHashIdMappingBuilder() .setFlowHashIdMap(Collections.<FlowHashIdMap> emptyList()).build(); tx.merge(LogicalDatastoreType.OPERATIONAL, tableRef.augmentation(FlowHashIdMapping.class), emptyMapping); tableEnsured = true; } }
private void ensureTableFowHashIdMapping(final ReadWriteTransaction tx) { if( ! tableEnsured) { ensureTable(tx, tableKey.getId(), tableRef); final FlowHashIdMapping emptyMapping = new FlowHashIdMappingBuilder() .setFlowHashIdMap(Collections.<FlowHashIdMap> emptyList()).build(); tx.merge(LogicalDatastoreType.OPERATIONAL, tableRef.augmentation(FlowHashIdMapping.class), emptyMapping); tableEnsured = true; } }
@Deprecated private void processTenantForwarding(Subnet routerPortSubnet, ContextId routerL3Context, FixedIps portIpWithSubnet, TenantId tenantId, ReadWriteTransaction rwTx) { L2BridgeDomainId l2BdId = new L2BridgeDomainId(routerPortSubnet.getNetworkId().getValue()); L2BridgeDomain l2Bd = new L2BridgeDomainBuilder().setId(l2BdId).setParent(new L3ContextId(routerL3Context)).build(); rwTx.merge(LogicalDatastoreType.CONFIGURATION, IidFactory.l2BridgeDomainIid(tenantId, l2BdId), l2Bd, true); // set virtual router IP for subnet org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.Subnet subnet = NeutronSubnetAware.createTenantSubnet( routerPortSubnet, portIpWithSubnet.getIpAddress()); rwTx.merge(LogicalDatastoreType.CONFIGURATION, IidFactory.subnetIid(tenantId, subnet.getId()), subnet); }
@Deprecated private void modifyForwardingOnDelete(Subnet routerPortSubnet, L3ContextId l3contextId, TenantId tenantId, ReadWriteTransaction rwTx) { L2BridgeDomainId l2BdId = new L2BridgeDomainId(routerPortSubnet.getNetworkId().getValue()); L2BridgeDomain l2Bd = new L2BridgeDomainBuilder().setId(l2BdId).setParent(l3contextId).build(); rwTx.merge(LogicalDatastoreType.CONFIGURATION, IidFactory.l2BridgeDomainIid(tenantId, l2BdId), l2Bd); // remove virtual router IP for subnet org.opendaylight.yang.gen.v1.urn.opendaylight.groupbasedpolicy.policy.rev140421.tenants.tenant.forwarding.context.Subnet tenantSubnet = NeutronSubnetAware.createTenantSubnet(routerPortSubnet, null); rwTx.put(LogicalDatastoreType.CONFIGURATION, IidFactory.subnetIid(tenantId, tenantSubnet.getId()), tenantSubnet); }