[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-6667?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14005169#comment-14005169
 ] 

Alex Hitchins commented on CLOUDSTACK-6667:
-------------------------------------------

I've re-factored out the isValidCidr method and added a check for comma 
separated values and if present enumerate them. The method will return false if 
any one of the cidr values are invalid.

Test case has been extended to check for successful failures, including valid 
and invalid values.

Once this has gone through testing I'll submit the patch.

> Can't provision a site-to-site VPN with multiple CIDRs
> ------------------------------------------------------
>
>                 Key: CLOUDSTACK-6667
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-6667
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Management Server
>    Affects Versions: Future, 4.2.1
>         Environment: CloudStack 4.2.1
>            Reporter: Paul Angus
>            Assignee: Alex Hitchins
>            Priority: Critical
>
> When attempting to create a site-to-site VPN with multiple remote CIDRs ie:
> 172.1.0.0/16,172.11.0.0/16
> CloudStack reports that "172.1.0.0/16,172.11.0.0/16" is an invalid CIDR.
> CloudStack code does not appear to be enumerating the string as two comma 
> separated CIDRs.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to