int newFlowrefCnt = nh.getFlowrefCount() - 1;
if (newFlowrefCnt == 0) { //remove the group only if there are no more flows using this group
GroupEntity groupEntity = MDSALUtil.buildGroupEntity(
- dpnId, nh.getEgressPointer(), ipAddress, GroupTypes.GroupAll, null);
+ dpnId, nh.getEgressPointer(), ipAddress, GroupTypes.GroupAll,
+ Collections.EMPTY_LIST /*listBucketInfo*/);
// remove Group ...
mdsalApiManager.removeGroup(groupEntity);
//update MD-SAL DS
vpnId, rd, vrfEntry, isExtraroute);
if (!dpnId.equals(BigInteger.ZERO)) {
nextHopManager.setupLoadBalancingNextHop(vpnId, dpnId,
- vrfEntry.getDestPrefix(), /*listBucketInfo*/ null, /*remove*/ false);
+ vrfEntry.getDestPrefix(), /*listBucketInfo*/ Collections.emptyList(),
+ /*remove*/ false);
returnLocalDpnId.add(dpnId);
}
} else {
if (localDpnId != null && localDpnId != BigInteger.ZERO) {
// localDpnId is not known when clean up happens for last vm for a vpn on a dpn
if (extraRouteOptional.isPresent()) {
- nextHopManager.setupLoadBalancingNextHop(vpnId, remoteDpnId, vrfEntry.getDestPrefix(), null , false);
+ nextHopManager.setupLoadBalancingNextHop(vpnId, remoteDpnId, vrfEntry.getDestPrefix(),
+ Collections.emptyList() /*listBucketInfo*/, false);
}
deleteFibEntry(remoteDpnId, vpnId, vrfEntry, rd, tx);
return;
import com.google.common.base.Optional;
import java.math.BigInteger;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
GroupEntity groupEntity = null;
try {
groupEntity = MDSALUtil.buildGroupEntity(naptSwitch, groupId, routerName,
- GroupTypes.GroupAll, null);
+ GroupTypes.GroupAll, Collections.emptyList() /*listBucketInfo*/);
LOG.info("NAT Service : Removing NAPT Group in new naptSwitch {}", naptSwitch);
mdsalManager.removeGroup(groupEntity);
} catch (Exception ex) {
import com.google.common.util.concurrent.ListenableFuture;
import java.math.BigInteger;
import java.util.ArrayList;
+import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.concurrent.Future;
GroupEntity groupEntity = null;
try {
groupEntity = MDSALUtil.buildGroupEntity(dpnId, groupId, routerName,
- GroupTypes.GroupAll, null);
+ GroupTypes.GroupAll, Collections.emptyList() /*listBucketInfo*/);
LOG.info("NAT Service : SNAT -> Removing NAPT GroupEntity:{} on Dpn {}", groupEntity, dpnId);
mdsalManager.removeGroup(groupEntity);
} catch (Exception ex) {
import com.google.common.base.Optional;
import java.math.BigInteger;
+import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import javax.annotation.PostConstruct;
GroupEntity groupEntity = null;
try {
groupEntity = MDSALUtil.buildGroupEntity(dpnId, groupId, routerName,
- GroupTypes.GroupAll, null);
+ GroupTypes.GroupAll, Collections.emptyList() /*listBucketInfo*/);
LOG.info("NAT Service : Removing NAPT GroupEntity:{}", groupEntity);
mdsalManager.removeGroup(groupEntity);
} catch (Exception ex) {
}
GroupEntity groupEntity = MDSALUtil.buildGroupEntity(dpId, groupId, groupName, groupType,
- Collections.emptyList());
+ Collections.emptyList() /*listBucketInfo*/);
if (addOrRemove == NwConstants.ADD_FLOW) {
LOG.debug("Add group {} to DPN {}", groupId, dpId);
mdsalManager.addGroupToTx(groupEntity, tx);