mirror of
https://github.com/apache/cloudstack.git
synced 2025-12-15 18:12:35 +01:00
cloudstack 3.0 UI - site to site VPN - Edit mode - (1)split IKE policy field into 3 fields. (2)split ESP plicy field into 3 fields. (3)split lifetime field into 2 fields. (4) add Dead Peer Detection field.
This commit is contained in:
parent
532806ba13
commit
feb2ed1d2d
@ -4088,18 +4088,34 @@
|
|||||||
actions: {
|
actions: {
|
||||||
edit: {
|
edit: {
|
||||||
label: 'label.edit',
|
label: 'label.edit',
|
||||||
action: function(args) {
|
action: function(args) {
|
||||||
var data = {
|
var data = {
|
||||||
id: args.context.vpnCustomerGateway[0].id,
|
id: args.context.vpnCustomerGateway[0].id,
|
||||||
name: args.data.name,
|
name: args.data.name,
|
||||||
gateway: args.data.gateway,
|
gateway: args.data.gateway,
|
||||||
cidrlist: args.data.cidrlist,
|
cidrlist: args.data.cidrlist,
|
||||||
ipsecpsk: args.data.ipsecpsk,
|
ipsecpsk: args.data.ipsecpsk,
|
||||||
ikepolicy: args.data.ikepolicy,
|
ikelifetime: args.data.ikelifetime,
|
||||||
esppolicy: args.data.esppolicy,
|
esplifetime: args.data.esplifetime,
|
||||||
lifetime: args.data.lifetime
|
dpd: (args.data.dpd == "on")
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var ikepolicy = args.data.ikeEncryption + '-' + args.data.ikeHash;
|
||||||
|
if(args.data.ikeDh != null && args.data.ikeDh.length > 0)
|
||||||
|
ikepolicy += ';' + args.data.ikeDh;
|
||||||
|
|
||||||
|
$.extend(data, {
|
||||||
|
ikepolicy: ikepolicy
|
||||||
|
});
|
||||||
|
|
||||||
|
var esppolicy = args.data.espEncryption + '-' + args.data.espHash;
|
||||||
|
if(args.data.perfectForwardSecrecy != null && args.data.perfectForwardSecrecy.length > 0)
|
||||||
|
esppolicy += ';' + args.data.perfectForwardSecrecy;
|
||||||
|
|
||||||
|
$.extend(data, {
|
||||||
|
esppolicy: esppolicy
|
||||||
|
});
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: createURL('updateVpnCustomerGateway'),
|
url: createURL('updateVpnCustomerGateway'),
|
||||||
data: data,
|
data: data,
|
||||||
@ -4258,12 +4274,12 @@
|
|||||||
|
|
||||||
ikelifetime: {
|
ikelifetime: {
|
||||||
label: 'IKE lifetime (second)',
|
label: 'IKE lifetime (second)',
|
||||||
defaultValue: '86400',
|
isEditable: true,
|
||||||
validation: { required: false, number: true }
|
validation: { required: false, number: true }
|
||||||
},
|
},
|
||||||
esplifetime: {
|
esplifetime: {
|
||||||
label: 'ESP Lifetime (second)',
|
label: 'ESP Lifetime (second)',
|
||||||
defaultValue: '3600',
|
isEditable: true,
|
||||||
validation: { required: false, number: true }
|
validation: { required: false, number: true }
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user