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>
Wed, 10 Apr 2013 15:45:58 +0000 (17:45 +0200)
commit59baad7aa061c923e68ce3726bf9a025ff5f9f1d
treec10e2da105c48ef4b7358f44d0678d458ee92447
parentfe05a9318b6a6724027eaab06703c2e8a2f52746
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>
Reviewed-by: Guido Trotter <ultrotter@google.com>
lib/network.py