Skip to content

Commit b80a71c

Browse files
author
Jessica Wang
committed
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.
1 parent 14f2799 commit b80a71c

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

ui/scripts/network.js

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3766,7 +3766,21 @@
37663766
},
37673767
destroy: {
37683768
label: 'label.remove.vm.from.lb',
3769-
action: function(args) {
3769+
action: function(args) {
3770+
var inputData;
3771+
if (args.item.itemIp == undefined) {
3772+
inputData = {
3773+
id: args.multiRule.id,
3774+
virtualmachineids: args.item.id
3775+
};
3776+
} else {
3777+
inputData = {
3778+
id: args.multiRule.id,
3779+
"vmidipmap[0].vmid": args.item.id,
3780+
"vmidipmap[0].vmip": args.item.itemIp
3781+
};
3782+
}
3783+
37703784
$.ajax({
37713785
url: createURL('removeFromLoadBalancerRule'),
37723786
data: {

0 commit comments

Comments
 (0)