mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-16 10:32:34 +01:00
Pass VM guest IP to enable static NAT action
This commit is contained in:
parent
ccbad34c05
commit
fd7ce8bb88
@ -1685,7 +1685,7 @@
|
||||
args.response.success({ data: null });
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if('vpc' in args.context) {
|
||||
if($tierSelect.size() && $tierSelect.val() != '-1' ){
|
||||
data.networkid = $tierSelect.val();
|
||||
@ -1737,6 +1737,10 @@
|
||||
ipaddressid: args.context.ipAddresses[0].id,
|
||||
virtualmachineid: args.context.instances[0].id
|
||||
};
|
||||
|
||||
if (args._subselect && args._subselect != -1) {
|
||||
data.vmguestip = args._subselect;
|
||||
}
|
||||
|
||||
if('vpc' in args.context) {
|
||||
if(args.tierID == '-1') {
|
||||
|
||||
@ -92,9 +92,10 @@
|
||||
var start = args.start;
|
||||
|
||||
start();
|
||||
$dataList.fadeOut(function() {
|
||||
$dataList.fadeOut(function() {
|
||||
action({
|
||||
tierID: $dataList.find('.tier-select select').val(),
|
||||
_subselect: $dataList.find('tr.multi-edit-selected .subselect select').val(),
|
||||
context: $.extend(true, {}, context, {
|
||||
instances: [
|
||||
$dataList.find('tr.multi-edit-selected').data('json-obj')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user