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' },
|
id: { label: 'label.id' },
|
||||||
state: { label: 'label.state' },
|
state: { label: 'label.state' },
|
||||||
physicalnetworkid: { label: 'label.physical.network.ID' },
|
physicalnetworkid: { label: 'label.physical.network.ID' },
|
||||||
destinationphysicalnetworkid: { label: 'label.destination.physical.network.id' }
|
destinationphysicalnetworkid: { label: 'label.destination.physical.network.id' },
|
||||||
},
|
supportedServices: { label: 'label.supported.services' },
|
||||||
{
|
|
||||||
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' }
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
dataProvider: function(args) {
|
dataProvider: function(args) {
|
||||||
@ -1929,17 +1918,8 @@
|
|||||||
nspMap["virtualRouter"] = items[i];
|
nspMap["virtualRouter"] = items[i];
|
||||||
args.response.success({
|
args.response.success({
|
||||||
actionFilter: virtualRouterProviderActionFilter,
|
actionFilter: virtualRouterProviderActionFilter,
|
||||||
data: $.extend(true, {}, nspMap["virtualRouter"], {
|
data: $.extend(nspMap["virtualRouter"], {
|
||||||
Vpn: 'On',
|
supportedServices: nspMap["virtualRouter"].servicelist.join(', ')
|
||||||
Dhcp: 'On',
|
|
||||||
Dns: 'On',
|
|
||||||
Gateway: 'On',
|
|
||||||
Firewall: 'On',
|
|
||||||
Lb: 'On',
|
|
||||||
UserData: 'On',
|
|
||||||
SourceNat: 'On',
|
|
||||||
StaticNat: 'On',
|
|
||||||
PortForwarding: 'On'
|
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user