File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 8787
8888 } else { //non-portable IP which has only one NIC
8989 // Get NIC IPs
90+ var data = {
91+ virtualmachineid : instance . id ,
92+ } ;
93+ if ( args . context . networkid != undefined ) {
94+ $ . extend ( data , {
95+ networkid : args . context . networkid
96+ } ) ;
97+ } else {
98+ $ . extend ( data , {
99+ networkid : network . id
100+ } ) ;
101+ }
90102 $ . ajax ( {
91103 url : createURL ( 'listNics' ) ,
92- data : {
93- virtualmachineid : instance . id ,
94- networkId : network . id
95- } ,
104+ data : data ,
96105 success : function ( json ) {
97106 var nic = json . listnicsresponse . nic [ 0 ] ;
98107 var primaryIp = nic . ipaddress ;
24652474 networkid : $tierSelect . val ( ) ,
24662475 vpcid : args . context . vpc [ 0 ] . id
24672476 } ) ;
2477+ $ . extend ( args . context , {
2478+ networkid : $tierSelect . val ( ) ,
2479+ vpcid : args . context . vpc [ 0 ] . id
2480+ } ) ;
24682481 } else if ( 'networks' in args . context && ! args . context . ipAddresses [ 0 ] . isportable ) {
24692482 $ . extend ( data , {
24702483 networkid : args . context . networks [ 0 ] . id
You can’t perform that action at this time.
0 commit comments