Pass network_mask_bits in assign_static_ip()

Tempest patch (I430424cc776cb12906c7890cf584797ebea1cd41)
removing the dependency of config value of network_mask_bits
in remote_client assign_static_ip() method.

User of this method needs to pass the network_mask_bits explicitly as arg.

Change-Id: I87f420af25e30f31be34495e1a859802b53cceea
Depends-On: I430424cc776cb12906c7890cf584797ebea1cd41
This commit is contained in:
ghanshyam 2017-03-06 08:23:52 +00:00
parent 0e81569a86
commit 550fce70d0
1 changed files with 4 additions and 2 deletions

View File

@ -231,8 +231,10 @@ class ScenarioPolicyBase(manager.NetworkScenarioTest):
% CONF.network.build_timeout)
num, new_nic = self.diff_list[0]
ssh_client.assign_static_ip(nic=new_nic,
addr=new_port.fixed_ips[0]['ip_address'])
ssh_client.assign_static_ip(
nic=new_nic,
addr=new_port.fixed_ips[0]['ip_address'],
network_mask_bits=CONF.network.project_network_mask_bits)
ssh_client.turn_nic_on(nic=new_nic)
def _get_server_nics(self, ssh_client):