CS-15962:InterVlan -VirtualRouter details as a separate under the VPC section

This commit is contained in:
Pranav Saxena 2012-08-14 01:09:38 +05:30
parent f169a97096
commit b3e5371374
1 changed files with 50 additions and 1 deletions

View File

@ -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 "<font color='red'>Yes</font>";
}
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
})
}
});
}
}
}
}
}