From b3e5371374ffb1445743d9396955ba898aa06646 Mon Sep 17 00:00:00 2001 From: Pranav Saxena Date: Tue, 14 Aug 2012 01:09:38 +0530 Subject: [PATCH] CS-15962:InterVlan -VirtualRouter details as a separate under the VPC section --- ui/scripts/network.js | 51 ++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) 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 + }) + } + + }); + } + + } + } } }