You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 14a4dd1
Browse filesBrowse the repository at this point in the historyBrowse files
Jayapal
authored and
Kishan Kavala
committed
CLOUDSTACK-2692 Assigning LB rule for vm nic secondary ips
@@ -62,10 +67,12 @@ public class AssignToLoadBalancerRuleCmd extends BaseAsyncCmd {
62
67
type = CommandType.LIST,
63
68
collectionType = CommandType.UUID,
64
69
entityType = UserVmResponse.class,
65
-
required = true,
66
70
description = "the list of IDs of the virtual machine that are being assigned to the load balancer rule(i.e. virtualMachineIds=1,2,3)")
67
71
privateList<Long> virtualMachineIds;
68
72
73
+
@Parameter(name = ApiConstants.VIRTUAL_MACHINE_ID_IP, type = CommandType.MAP, description = "VM ID and IP map, vmidipmap[0].vmid=1 vmidipmap[0].ip=10.1.1.75")
@@ -307,6 +309,8 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService {
307
309
IpAddressManager_ipAddrMgr;
308
310
@Inject
309
311
EntityManager_entityMgr;
312
+
@Inject
313
+
LoadBalancerVMMapDao_lbVmMapDao;
310
314
311
315
int_cidrLimit;
312
316
boolean_allowSubdomainNetworkAccess;
@@ -806,7 +810,15 @@ public boolean releaseSecondaryIpFromNic(long ipAddressId) {
806
810
s_logger.debug("VM nic IP " + secondaryIp + " is associated with the static NAT rule public IP address id " + publicIpVO.getId());
807
811
thrownewInvalidParameterValueException("Can' remove the ip " + secondaryIp + "is associate with static NAT rule public IP address id " + publicIpVO.getId());
0 commit comments