Skip to content

Commit 7daeadc

Browse files
committed
Adding missing override implementation for MockNetworkManagerImpl and MockVirtualMachineManagerImpl.Adding super method declaration in Network Service
1 parent de6b4e1 commit 7daeadc

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

api/src/com/cloud/network/NetworkService.java

+2
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,6 @@ public interface NetworkService {
130130

131131
List<? extends Network> getIsolatedNetworksWithSourceNATOwnedByAccountInZone(long zoneId, Account owner);
132132

133+
IpAddress allocateIP(long networkId, Account ipOwner, boolean isSystem) throws ResourceAllocationException, InsufficientAddressCapacityException, ConcurrentOperationException;
134+
133135
}

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

+8
Original file line numberDiff line numberDiff line change
@@ -881,4 +881,12 @@ public String getDefaultGuestTrafficLabel(long dcId, HypervisorType vmware) {
881881
// TODO Auto-generated method stub
882882
return null;
883883
}
884+
885+
@Override
886+
public IpAddress allocateIP(long networkId, Account ipOwner)
887+
throws ResourceAllocationException,
888+
InsufficientAddressCapacityException, ConcurrentOperationException {
889+
// TODO Auto-generated method stub
890+
return null;
891+
}
884892
}

server/test/com/cloud/vm/MockVirtualMachineManagerImpl.java

+13
Original file line numberDiff line numberDiff line change
@@ -217,4 +217,17 @@ public VMInstanceVO findById(long vmId) {
217217
return null;
218218
}
219219

220+
@Override
221+
public void checkIfCanUpgrade(VirtualMachine vmInstance,
222+
long newServiceOfferingId) {
223+
// TODO Auto-generated method stub
224+
225+
}
226+
227+
@Override
228+
public boolean upgradeVmDb(long vmId, long serviceOfferingId) {
229+
// TODO Auto-generated method stub
230+
return false;
231+
}
232+
220233
}

0 commit comments

Comments
 (0)