Skip to content

Commit 83bbe68

Browse files
committed
CLOUDSTACK-5281:
Resource limit shouldnt be counted for resources with display flag = 0. Correcting this for the networks at the moment.
1 parent edc1b78 commit 83bbe68

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

server/test/com/cloud/vpc/MockNetworkManagerImpl.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
import javax.inject.Inject;
2626
import javax.naming.ConfigurationException;
2727

28+
import org.apache.cloudstack.acl.ControlledEntity;
2829
import org.apache.log4j.Logger;
2930
import org.springframework.stereotype.Component;
3031

@@ -835,6 +836,11 @@ public void removeDhcpServiceInSubnet(Nic nic) {
835836
//To change body of implemented methods use File | Settings | File Templates.
836837
}
837838

839+
@Override
840+
public boolean resourceCountNeedsUpdate(NetworkOffering ntwkOff, ACLType aclType) {
841+
return false; //To change body of implemented methods use File | Settings | File Templates.
842+
}
843+
838844
@Override
839845
public void prepareNicForMigration(VirtualMachineProfile vm, DeployDestination dest) {
840846
// TODO Auto-generated method stub

0 commit comments

Comments
 (0)