mirror of
https://github.com/kernelkit/infix.git
synced 2026-08-06 07:33:01 +02:00
test: iface: Fix bug in function address_exist()
did not allow any other protocol to checked except DHCP
This commit is contained in:
committed by
Joachim Wiberg
parent
a730cc0439
commit
ac97ce01a5
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user