Use new command for DHCP discovery check
Change-Id: Ifa1d51103dbca26fad9ef8526d06ab002b2320d2 Related-Bug: #1569325 Depends-On: I30e4c1614095291bf9a5cb144f15800d1bd6f850
This commit is contained in:
parent
4df5a45042
commit
a0c53594e8
|
@ -63,7 +63,7 @@ module MCollective
|
|||
format = request.data[:format] || "json"
|
||||
timeout = request.data[:timeout] || 2
|
||||
repeat = request.data[:repeat] || 1
|
||||
cmd = "dhcpcheck vlans '#{interfaces}' --timeout=#{timeout} --format=#{format} --repeat=#{repeat} "
|
||||
cmd = "dhcpcheck discover '#{interfaces}' --timeout=#{timeout} --format=#{format} --repeat=#{repeat} "
|
||||
reply[:status] = run(cmd, :stdout => :out, :stderr => :err)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue