Drop cidr.numhosts usage: not available in netaddr
Temporary solution was made on fuel-devops side, correct solution: use len(cidr) instead Change-Id: I409e4af545fdc36ded4fc7f5a5f8f0da3a000d0c
This commit is contained in:
parent
ac1e3e9adc
commit
3129a9dd11
@ -550,7 +550,7 @@ class TestMultipleClusterNets(TestNetworkTemplatesBase):
|
||||
# floating range
|
||||
public2_cidr = self.env.d_env.get_network(name='public2').ip
|
||||
new_settings_float = {
|
||||
'floating_ranges': [[str(public2_cidr[public2_cidr.numhosts // 2]),
|
||||
'floating_ranges': [[str(public2_cidr[len(public2_cidr) // 2]),
|
||||
str(public2_cidr[-2])]]
|
||||
}
|
||||
self.fuel_web.client.update_network(cluster_id, new_settings_float)
|
||||
|
Loading…
Reference in New Issue
Block a user