tuskar-ui/tools
Tihomir Trifonov cb48cebefc Implementation of blueprint ip-validation
First draft. Added a forms.Field wrapper for IPAddress.
Implemented IPv4 and IPv6 checks, subnet mask range,
optional mask range limitation.

As far as I see now, there is only 1 place in Dashboard
to accept IP fields as input - the Security rules.
I've tried to input IPv6 rule and it was accepted.
The previous version of the code doesn't accept
IPv6, only IPv4. I am not sure if IPv6 should be
accepted here. It however works.

Patch set 3: Now using netaddr library(used also by nova),
which provides support for validation of IP addresses.
Using this library, now the IPField can support more
ways to enter an IP - like short versions:
10/8 - for all 10.xxx.xxx.xxx
192.168/16 - for all 192.168.xxx.xxx

Regarding IPy library - it performs some strict
subnet validation, which will not accept cidr like this:
192.168.1.1/20
because the only mask that matches this IP is 32.
IPy doesn't allow broader masks. But my assumption is
that the operators should take the responsibility for
the data they enter. At least this CIDR is valid after all.

Change-Id: Ie497fe65fde3af25a18109a182ab78255ad7ec60
2012-05-11 00:23:44 +03:00
..
install_venv.py Add distribute to test-requires. 2012-04-18 07:39:27 -07:00
pip-requires Move to python-glanceclient. 2012-04-29 13:01:26 -07:00
rfc.sh Remove trailing whitespaces in regular file 2012-03-03 12:31:19 +08:00
test-requires Implementation of blueprint ip-validation 2012-05-11 00:23:44 +03:00
with_venv.sh Rename venvs to match everyone else. 2012-02-13 12:11:08 -08:00