bug 12288: Add more fields to network list view/detail view

-Added Network type field
-Added VLAN ID field (from broadcasturi)
This commit is contained in:
Brian Federle 2011-12-06 12:19:26 -08:00
parent 69e3f037a5
commit 547972eed5

View File

@ -73,9 +73,19 @@
},
fields: {
name: { label: 'Name' },
type: { label: 'Type' },
traffictype: { label: 'Traffic Type' },
gateway: { label: 'Gateway' },
vlan: { label: 'VLAN' }
broadcasturi: {
label: 'VLAN',
converter: function(value) {
if (value)
return value.split('vlan://')[1];
return 'Untagged';
}
},
state: { label: 'State', indicator: { 'Setup': 'on' } }
},
dataProvider: function(args) {
$.ajax({
@ -104,7 +114,7 @@
name: { label: 'Name' }
},
{
name: { label: 'Short name' },
type: { label: 'Type' },
displaytext: { label: 'Description' },
traffictype: { label: 'Traffic Type' },
gateway: { label: 'Gateway' },