Re: Question about JavaScript validators in UI

2016-10-26 Thread Wido den Hollander
gt; > > > > > > > > Yes, you can add a new validator that can validator that the provided > > address is either ipv4 or ipv6, here: > > > > > > https://github.com/apache/cloudstack/blob/master/ui/ > > scripts/sharedFunctions.js#L2327 > >

Re: Question about JavaScript validators in UI

2016-10-26 Thread Marc-Aurèle Brothier
ipv4 or ipv6, here: > > > > https://github.com/apache/cloudstack/blob/master/ui/ > scripts/sharedFunctions.js#L2327 > > > > > > Give the validator any appropriate name, and use it in the network.js > code replacing the currently defined validator with yours. &

Re: Question about JavaScript validators in UI

2016-10-26 Thread Wido den Hollander
> > > From: Wido den Hollander > Sent: 21 October 2016 17:33:29 > To: dev@cloudstack.apache.org > Subject: Question about JavaScript validators in UI > > Hi, > > While working on the IPv6 for Basic Networking I'm at the stag

Re: Question about JavaScript validators in UI

2016-10-23 Thread Rohit Yadav
currently defined validator with yours. Regards. From: Wido den Hollander Sent: 21 October 2016 17:33:29 To: dev@cloudstack.apache.org Subject: Question about JavaScript validators in UI Hi, While working on the IPv6 for Basic Networking I'm at the stage o

Question about JavaScript validators in UI

2016-10-21 Thread Wido den Hollander
Hi, While working on the IPv6 for Basic Networking I'm at the stage of the Security Groups. When entering a CIDR in the UI which is not IPv4 (eg ::/0) it will show: 'The specified IPv4 CIDR is invalid.' That's true, so looking in network.js I see this piece of code: 'cidr': { edit: true,