Check minimum size of networks on creation
authorHelga Velroyen <helgav@google.com>
Mon, 21 Jan 2013 15:20:34 +0000 (16:20 +0100)
committerHelga Velroyen <helgav@google.com>
Thu, 24 Jan 2013 08:50:35 +0000 (09:50 +0100)
commit9842f0201688210d8a8484407d077cab3c825803
tree8a0077cac840fea225c24ac628d517f13542c1d2
parentea7693c1c3b9234660381f8b475e7f06242f07c3
Check minimum size of networks on creation

When creating a network, so far no size constraints were checked.
We now limit the size of a network to a /30 or bigger, although
tecnically, the ipaddr library supports even /32 networks.

Signed-off-by: Helga Velroyen <helgav@google.com>
Reviewed-by: Michael Hanselmann <hansmi@google.com>
lib/network.py