From c0ac9f100eaa1d08d30c799a4c45365c7f5204ba Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Fri, 17 Jun 2022 10:14:10 -0500 Subject: ci: Add n321 to devtest Signed-off-by: Steven Koo --- .ci/utils/mutex_hardware.py | 1 + 1 file changed, 1 insertion(+) (limited to '.ci/utils/mutex_hardware.py') 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) -- cgit v1.2.3