Revision 488209a5
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
1439 | 1439 |
}, |
1440 | 1440 |
error, 'resize', params); |
1441 | 1441 |
break; |
1442 |
case 'addFloatingIp': |
|
1443 |
this.__make_api_call(this.get_action_url(), // vm actions url |
|
1444 |
"create", // create so that sync later uses POST to make the call |
|
1445 |
{addFloatingIp: {address:params.address}}, // payload |
|
1446 |
function() { |
|
1447 |
self.state('CONNECT'); |
|
1448 |
success.apply(this, arguments); |
|
1449 |
snf.api.trigger("call"); |
|
1450 |
}, |
|
1451 |
error, 'addFloatingIp', params); |
|
1452 |
break; |
|
1453 |
case 'removeFloatingIp': |
|
1454 |
this.__make_api_call(this.get_action_url(), // vm actions url |
|
1455 |
"create", // create so that sync later uses POST to make the call |
|
1456 |
{removeFloatingIp: {address:params.address}}, // payload |
|
1457 |
function() { |
|
1458 |
self.state('DISCONNECT'); |
|
1459 |
success.apply(this, arguments); |
|
1460 |
snf.api.trigger("call"); |
|
1461 |
}, |
|
1462 |
error, 'addFloatingIp', params); |
|
1463 |
break; |
|
1464 | 1442 |
case 'destroy': |
1465 | 1443 |
this.__make_api_call(this.url(), // vm actions url |
1466 | 1444 |
"delete", // create so that sync later uses POST to make the call |
Also available in: Unified diff