diff options
author | Steven Koo <steven.koo@ni.com> | 2022-06-17 10:14:10 -0500 |
---|---|---|
committer | skooNI <60897865+skooNI@users.noreply.github.com> | 2022-07-20 15:57:20 -0500 |
commit | c0ac9f100eaa1d08d30c799a4c45365c7f5204ba (patch) | |
tree | dc5d70aa09c19d464c7838942a29925232425250 /.ci/utils/mutex_hardware.py | |
parent | b1bc6ec720692815ae443db099fcb19ca3b583f7 (diff) | |
download | uhd-c0ac9f100eaa1d08d30c799a4c45365c7f5204ba.tar.gz uhd-c0ac9f100eaa1d08d30c799a4c45365c7f5204ba.tar.bz2 uhd-c0ac9f100eaa1d08d30c799a4c45365c7f5204ba.zip |
ci: Add n321 to devtest
Signed-off-by: Steven Koo <steven.koo@ni.com>
Diffstat (limited to '.ci/utils/mutex_hardware.py')
-rw-r--r-- | .ci/utils/mutex_hardware.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/.ci/utils/mutex_hardware.py b/.ci/utils/mutex_hardware.py index e6fece61f..e9c102469 100644 --- a/.ci/utils/mutex_hardware.py +++ b/.ci/utils/mutex_hardware.py @@ -45,6 +45,7 @@ def set_sfp_addrs(mgmt_addr, sfp_addrs): with Connection(host=mgmt_addr,user='root',connect_kwargs={"password":"", "timeout":120, "banner_timeout":120, "auth_timeout":120}) as dut: for idx, sfp_addr in enumerate(sfp_addrs): dut.run(f"ip link set sfp{idx} down") + dut.run(f"ip addr flush dev sfp{idx}") dut.run(f"ip addr add {sfp_addr}/24 dev sfp{idx}") dut.run(f"ip link set sfp{idx} up") time.sleep(30) |