Avoid overlapping subnets in class NetworksTestJSON

When allow_overlapping_ips is False, some of the tests in
"NetworksTestJSON" class are failing.

This class creates a subnet 10.100.0.0/28 as part of resource_setup.
This subnet is used in test_(list/show) tests. Other kind of tests
in this class (i.e tests_create_) first try with 10.100.0.0/28 subnet,
it fails, then they try next subnet block i.e 10.100.0.16/28 but
this also fails as the parameters(ex, gateway, allocation_pools) with
which the tests try to create still belongs to 10.100.0.0/28.
Having overlapping ips in the same tenant is bad practice even when
allow_overlapping_ips is enabled.

So create the subnet for the class from the last subnet block
(10.100.255.240/28),so that the subnet in both the kind of tests won't
overlap. Also delete the subnets in "test_create_delete_ " tests
if they are not deleting, so that it won't fail when next test tries
to create same subnet.

Closes-bug: #1393564
Change-Id: I6861c7cf09a9a5e8765d78fe7913cfe9b49233ab
1 file changed