summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Novikov <snovikov@mirantis.com>2017-03-24 14:29:22 +0400
committerSergey Novikov <snovikov@mirantis.com>2017-03-24 12:26:54 +0000
commit094cbbaad5a34f77529665cce44cabb3303c3cc9 (patch)
treeb758460e76074c3acd36697fe80da8b456cfcf42
parent1f4b600dabb78d5049da94971a176c6ab8245ec1 (diff)
Update getting of host network devices according to fuel-devops v3
Notes
Notes (review): Verified+1: Fuel CI <fuel-ci-bot@mirantis.com> Code-Review+2: Vladimir Khlyunev <vkhlyunev@mirantis.com> Code-Review+1: Ilya Bumarskov <ibumarskov@mirantis.com> Code-Review+1: Alexey Stepanov <penguinolog@gmail.com> Workflow+1: Alexey Stepanov <penguinolog@gmail.com> Verified+2: Jenkins Submitted-by: Jenkins Submitted-at: Fri, 24 Mar 2017 13:22:37 +0000 Reviewed-on: https://review.openstack.org/449602 Project: openstack/fuel-qa Branch: refs/heads/master
-rw-r--r--fuelweb_test/models/environment.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/fuelweb_test/models/environment.py b/fuelweb_test/models/environment.py
index 3eeb915..afd1aae 100644
--- a/fuelweb_test/models/environment.py
+++ b/fuelweb_test/models/environment.py
@@ -211,10 +211,9 @@ class EnvironmentModel(six.with_metaclass(SingletonMeta, object)):
211 211
212 @staticmethod 212 @staticmethod
213 def get_target_devs(devops_nodes): 213 def get_target_devs(devops_nodes):
214 return [ 214 return [devops_node.get_interface_target_dev(interface.mac_address)
215 interface.target_dev for interface in [ 215 for devops_node in devops_nodes
216 val for var in map(lambda node: node.interfaces, devops_nodes) 216 for interface in devops_node.interfaces]
217 for val in var]]
218 217
219 @property 218 @property
220 def d_env(self): 219 def d_env(self):