mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-2491:NTier: Creation of ACL Rule for protocol AH (51) and ESP (50) Fails
This commit is contained in:
parent
738067077a
commit
cf1fada372
|
|
@ -94,8 +94,8 @@
|
|||
},
|
||||
|
||||
'protocolnumber': {label:'Protocol Number',isDisabled:true,isHidden:true,edit:true},
|
||||
'startport': { edit: true, label: 'label.start.port' },
|
||||
'endport': { edit: true, label: 'label.end.port' },
|
||||
'startport': { edit: true, label: 'label.start.port' , isOptional:true },
|
||||
'endport': { edit: true, label: 'label.end.port' , isOptional:true},
|
||||
'networkid': {
|
||||
label: 'Select Tier',
|
||||
select: function(args) {
|
||||
|
|
@ -165,7 +165,18 @@
|
|||
else
|
||||
delete args.data.protocolnumber;
|
||||
|
||||
|
||||
|
||||
if((args.data.protocol == 'tcp' || args.data.protocol == 'udp' || args.data.protocol == 'all') && (args.data.startport=="" || args.data.startport == undefined)){
|
||||
cloudStack.dialog.notice({message:_l('Start Port or End Port value should not be blank')});
|
||||
$(window).trigger('cloudStack.fullRefresh');
|
||||
}
|
||||
else if((args.data.protocol == 'tcp' || args.data.protocol == 'udp' || args.data.protocol == 'all') && (args.data.endport=="" || args.data.endport == undefined)){
|
||||
cloudStack.dialog.notice({message:_l('Start Port or End Port value should not be blank')});
|
||||
$(window).trigger('cloudStack.fullRefresh');
|
||||
}
|
||||
|
||||
else{
|
||||
$.ajax({
|
||||
url: createURL('createNetworkACL'),
|
||||
data: $.extend(args.data, {
|
||||
|
|
@ -202,6 +213,7 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
destroy: {
|
||||
|
|
|
|||
Loading…
Reference in New Issue