Use listservers for dhcpcheck
Conform search of external dhcp servers
to changed dhcpcheck commands.
Change-Id: I44dee0bae667cc8a04583e519e8b15b04f192a70
Depends-On: I07c3e7acb00e65554983f07e17acbf345c7508d7
Closes-Bug: #1653194
(cherry picked from commit 8af5a4df68
)
This commit is contained in:
parent
fff30892ca
commit
2cf99bf930
|
@ -169,7 +169,7 @@ def search_external_dhcp(iface, timeout):
|
|||
:returns: list of DHCP data
|
||||
:raises: errors.NetworkException
|
||||
"""
|
||||
command = ["dhcpcheck", "discover", "--timeout", str(timeout), "-f",
|
||||
command = ["dhcpcheck", "listservers", "--timeout", str(timeout), "-f",
|
||||
"json", "--ifaces", iface]
|
||||
try:
|
||||
upIface(iface) # ensure iface is up
|
||||
|
|
Loading…
Reference in New Issue