<BUG>final String rd = vpnInstance.getIpv4Family().getRouteDistinguisher();

final long vpnId = VpnUtil.getVpnId(broker, vpnName);</BUG>
WriteTransaction writeTxn = broker.newWriteOnlyTransaction();
<BUG>if ((rd != null) && (!rd.isEmpty())) {
waitForOpRemoval(rd, vpnName);

} else {
waitForOpRemoval(vpnName, vpnName);
}</BUG>
VpnUtil.removeVpnIdToVpnInstance(broker, vpnId, writeTxn);

VpnInstance value) {
this.idManager = idManager;
this.broker = broker;
this.vpnInstance = value;
}
@Override
public List<ListenableFuture<Void>> call() {
final String vpnName = vpnInstance.getVpnInstanceName();
final List<String> rds = vpnInstance.getIpv4Family().getRouteDistinguisher();
String primaryRd = VpnUtil.getPrimaryRd(vpnInstance);
final long vpnId = VpnUtil.getVpnId(broker, vpnName);
WriteTransaction writeTxn = broker.newWriteOnlyTransaction();
waitForOpRemoval(primaryRd, vpnName);
VpnUtil.removeVpnIdToVpnInstance(broker, vpnId, writeTxn);
