Use listservers for dhcpcheck

Conform search of external dhcp servers
to changed dhcpcheck commands.

Change-Id: I44dee0bae667cc8a04583e519e8b15b04f192a70
Depends-On: I07c3e7acb00e65554983f07e17acbf345c7508d7
Closes-Bug: #1653194
This commit is contained in:
Michael Polenchuk 2016-12-30 12:41:55 +04:00
parent 6e36349d84
commit 8af5a4df68
1 changed files with 1 additions and 1 deletions

View File

@ -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