TransactionUtil.syncWrite(dataBroker, LogicalDatastoreType.CONFIGURATION,
VpnUtil.getVpnInstanceToVpnIdIdentifier(vpnInstanceName),
vpnInstanceToVpnId, TransactionUtil.DEFAULT_CALLBACK);
}
VpnIds vpnIdToVpnInstance = VpnUtil.getVpnIdToVpnInstance(vpnId, value.getVpnInstanceName(),
<BUG>(rd != null) ? rd : value.getVpnInstanceName(), (rd != null)/*isExternalVpn*/);
if (writeConfigTxn != null) {</BUG>
writeConfigTxn.put(LogicalDatastoreType.CONFIGURATION,
VpnUtil.getVpnIdToVpnInstanceIdentifier(vpnId),
vpnIdToVpnInstance, true);

TransactionUtil.syncWrite(dataBroker, LogicalDatastoreType.CONFIGURATION,
VpnUtil.getVpnInstanceToVpnIdIdentifier(vpnInstanceName),
vpnInstanceToVpnId, TransactionUtil.DEFAULT_CALLBACK);
}
VpnIds vpnIdToVpnInstance = VpnUtil.getVpnIdToVpnInstance(vpnId, value.getVpnInstanceName(),
primaryRd, VpnUtil.isBgpVpn(vpnInstanceName, primaryRd));
if (writeConfigTxn != null) {
writeConfigTxn.put(LogicalDatastoreType.CONFIGURATION,
VpnUtil.getVpnIdToVpnInstanceIdentifier(vpnId),
vpnIdToVpnInstance, true);
