diff --git a/ui/scripts/network.js b/ui/scripts/network.js index 2c8dd91abf9..a28e6b740a3 100644 --- a/ui/scripts/network.js +++ b/ui/scripts/network.js @@ -3916,7 +3916,56 @@ } }); } - } + }, + + router: { + title: 'VPC Router Details', + fields:[ + { + name: {label:'Router Name'} + }, + { + id:{ label:'ID'}, + zonename: { label: 'label.zone'}, + dns1: {label: 'DNS'}, + gateway: {label:'Gateway'}, + publicip: {label: 'Public IP'}, + guestipaddress:{ label: 'Guest IP'}, + linklocalip: {label: 'Link Local IP'}, + state: { label:'State'}, + serviceofferingname: {label:'Service Offering'}, + isredundantrouter:{ + label: 'Redundant Router', + converter: function(booleanValue) { + if (booleanValue == true) { + return "Yes"; + } + return "No"; + } + }, + account: {label:'label.account'}, + domain: {label: 'label.domain'}, + + } + + ], + dataProvider: function(args) { + $.ajax ({ + url:createURL("listRouters&listAll=true&vpcid=" +args.context.vpc[0].id), + dataType: "json", + async: true, + success:function(json) { + var item = json.listroutersresponse.router[0]; + args.response.success ({ + data:item + }) + } + + }); + } + + } + } } }