mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
cloudstack 3.0 UI - physical network page - Network Service Providers - Virtual Router - get supported services from API call instead of hard-coding.
This commit is contained in:
parent
52539e798d
commit
ae8e9a11ec
@ -1902,19 +1902,8 @@
|
||||
id: { label: 'label.id' },
|
||||
state: { label: 'label.state' },
|
||||
physicalnetworkid: { label: 'label.physical.network.ID' },
|
||||
destinationphysicalnetworkid: { label: 'label.destination.physical.network.id' }
|
||||
},
|
||||
{
|
||||
Vpn: { label: 'VPN' },
|
||||
Dhcp: { label: 'label.dhcp' },
|
||||
Dns: { label: 'DNS' },
|
||||
Gateway: { label: 'label.gateway' },
|
||||
Firewall: { label: 'Firewall' },
|
||||
Lb: { label: 'Load Balancer' },
|
||||
UserData: { label: 'UserData' },
|
||||
SourceNat: { label: 'Source NAT' },
|
||||
StaticNat: { label: 'Static NAT' },
|
||||
PortForwarding: { label: 'Port Forwarding' }
|
||||
destinationphysicalnetworkid: { label: 'label.destination.physical.network.id' },
|
||||
supportedServices: { label: 'label.supported.services' },
|
||||
}
|
||||
],
|
||||
dataProvider: function(args) {
|
||||
@ -1929,17 +1918,8 @@
|
||||
nspMap["virtualRouter"] = items[i];
|
||||
args.response.success({
|
||||
actionFilter: virtualRouterProviderActionFilter,
|
||||
data: $.extend(true, {}, nspMap["virtualRouter"], {
|
||||
Vpn: 'On',
|
||||
Dhcp: 'On',
|
||||
Dns: 'On',
|
||||
Gateway: 'On',
|
||||
Firewall: 'On',
|
||||
Lb: 'On',
|
||||
UserData: 'On',
|
||||
SourceNat: 'On',
|
||||
StaticNat: 'On',
|
||||
PortForwarding: 'On'
|
||||
data: $.extend(nspMap["virtualRouter"], {
|
||||
supportedServices: nspMap["virtualRouter"].servicelist.join(', ')
|
||||
})
|
||||
});
|
||||
break;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user