File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 482482 } ,
483483 dataType : 'json' ,
484484 async : true ,
485- success : function ( data ) {
486- debugger ;
485+ success : function ( data ) {
487486 var jid = data . assigntoloadbalancerruleresponse . jobid ;
488487 args . response . success ( {
489488 _custom : { jobId : jid }
519518 }
520519 } ) ;
521520 }
522- }
521+ } ,
522+ rules : {
523+ title : 'label.rules' ,
524+ multiple : true ,
525+ fields : [
526+ {
527+ sourceport : { label : 'Source Port' } ,
528+ instanceport : { label : 'Instance Port' }
529+ }
530+ ] ,
531+ dataProvider : function ( args ) {
532+ $ . ajax ( {
533+ url : createURL ( 'listLoadBalancers' ) ,
534+ data : {
535+ id : args . context . internalLoadBalancers [ 0 ] . id
536+ } ,
537+ success : function ( json ) {
538+ var item = json . listloadbalancerssresponse . loadbalancer [ 0 ] ;
539+ args . response . success ( { data : item . loadbalancerrule } ) ;
540+ }
541+ } ) ;
542+ }
543+ } ,
544+ assignedVms : {
545+ title : 'Assigned VMs' ,
546+ multiple : true ,
547+ fields : [
548+ {
549+ name : { label : 'label.name' } ,
550+ ipaddress : { label : 'label.ip.address' }
551+ }
552+ ] ,
553+ dataProvider : function ( args ) {
554+ $ . ajax ( {
555+ url : createURL ( 'listLoadBalancers' ) ,
556+ data : {
557+ id : args . context . internalLoadBalancers [ 0 ] . id
558+ } ,
559+ success : function ( json ) {
560+ var item = json . listloadbalancerssresponse . loadbalancer [ 0 ] ;
561+ args . response . success ( { data : item . loadbalancerinstance } ) ;
562+ }
563+ } ) ;
564+ }
565+ }
523566 }
524567 }
525568 }
You can’t perform that action at this time.
0 commit comments