Check validity of IP subnets

Be more consistent about this - check in the same way whether at startup
or during allocation.
This commit is contained in:
Bryan Boreham committed 2016-05-26 14:31:17 +00:00
1 parent d9d1956e0c
commit cda1084777
4 files changed
+29 -20

No files matched your search

+4
View File
@@ -122,4 +122,8 @@ assert_equal "$IPS" 10.2.3.
CID2=$(start_container $HOST1 net:10.2.3.0/24)
assert_container_cidrs $HOST1 $CID2 10.2.3.1/24
# Error conditions: host address not network, subnet too small
assert_raises "start_container $HOST1 net:10.2.3.2/30" 1
assert_raises "start_container $HOST1 net:10.2.3.2/31" 1
end_suite