From ac97ce01a5f058edaa56a46c88aa730f9e9c6a52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mattias=20Walstr=C3=B6m?= Date: Wed, 28 Feb 2024 16:44:33 +0100 Subject: [PATCH] test: iface: Fix bug in function address_exist() did not allow any other protocol to checked except DHCP --- test/infamy/iface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/infamy/iface.py b/test/infamy/iface.py index f696f7e3..e1fbb676 100644 --- a/test/infamy/iface.py +++ b/test/infamy/iface.py @@ -40,7 +40,7 @@ def address_exist(target, iface, address, proto="dhcp"): if not addrs: return False for addr in addrs: - if addr['origin'] == "dhcp" and addr['ip'] == address: + if addr['origin'] == proto and addr['ip'] == address: return True def get_ipv4_address(target, iface):