Skip to content

Commit 22cdfe3

Browse files
author
Sheng Yang
committed
IPv6: Enable specifying ipv6 address in DeployVMCmd
1 parent f0fb2e0 commit 22cdfe3

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

‎api/src/org/apache/cloudstack/api/command/user/vm/DeployVMCmd.java‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -306,9 +306,6 @@ private Map<Long, IpAddresses> getIpToNetworkMap() {
306306
if (requestedIpv6 != null) {
307307
requestedIpv6 = requestedIpv6.toLowerCase();
308308
}
309-
if (requestedIpv6 != null) {
310-
throw new InvalidParameterValueException("Cannot support specified IPv6 address!");
311-
}
312309
IpAddresses addrs = new IpAddresses(requestedIp, requestedIpv6);
313310
ipToNetworkMap.put(networkId, addrs);
314311
}
@@ -407,10 +404,6 @@ public void execute(){
407404
@Override
408405
public void create() throws ResourceAllocationException{
409406
try {
410-
if (getIp6Address() != null) {
411-
throw new InvalidParameterValueException("Cannot support specified IPv6 address!");
412-
}
413-
414407
//Verify that all objects exist before passing them to the service
415408
Account owner = _accountService.getActiveAccountById(getEntityOwnerId());
416409

0 commit comments

Comments
 (0)