mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Do not use eth0 or eth1 for random tests
One or other will be the control interface of the box
This commit is contained in:
parent
2e968d85fe
commit
dd6b643ceb
0
systemvm/patches/debian/config/opt/cloud/bin/update_config.py
Normal file → Executable file
0
systemvm/patches/debian/config/opt/cloud/bin/update_config.py
Normal file → Executable file
@ -101,7 +101,7 @@ class UpdateConfigTestCase(SystemVMTestCase):
|
|||||||
ip_address["add"] = r.choice((True, False))
|
ip_address["add"] = r.choice((True, False))
|
||||||
ip_address["one_to_one_nat"] = r.choice((True, False))
|
ip_address["one_to_one_nat"] = r.choice((True, False))
|
||||||
ip_address["first_i_p"] = r.choice((True, False))
|
ip_address["first_i_p"] = r.choice((True, False))
|
||||||
ip_address["nic_dev_id"] = r.choice((0, 1, 2))
|
ip_address["nic_dev_id"] = r.choice((2, 3))
|
||||||
if ip_address["nic_dev_id"] > 0:
|
if ip_address["nic_dev_id"] > 0:
|
||||||
ip_address["new_nic"] = True
|
ip_address["new_nic"] = True
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user