mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
CLOUDSTACK-6342: UI - Load Balancing page - LB rules - VM + IP Address - remove action - pass vmidipmap instead of virtualmachineids to removeFromLoadBalancerRule API where IP Address is specified for this VM under this LB rule.
This commit is contained in:
parent
14f27997dc
commit
b80a71ccb9
@ -3766,7 +3766,21 @@
|
||||
},
|
||||
destroy: {
|
||||
label: 'label.remove.vm.from.lb',
|
||||
action: function(args) {
|
||||
action: function(args) {
|
||||
var inputData;
|
||||
if (args.item.itemIp == undefined) {
|
||||
inputData = {
|
||||
id: args.multiRule.id,
|
||||
virtualmachineids: args.item.id
|
||||
};
|
||||
} else {
|
||||
inputData = {
|
||||
id: args.multiRule.id,
|
||||
"vmidipmap[0].vmid": args.item.id,
|
||||
"vmidipmap[0].vmip": args.item.itemIp
|
||||
};
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: createURL('removeFromLoadBalancerRule'),
|
||||
data: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user