Use 'discover' instead of 'vlans' commands for DHCP discover

Interface of dhcpchecker has been changed so this patch make net_probe
agent work in accordance.

Change-Id: If4fbcb9643b0f45f7e1b76d8ae8f525cef1df298
Related-Bug: #1569325
This commit is contained in:
Artem Roma 2016-06-06 12:05:20 +03:00
parent b4158dc901
commit b19509b452
1 changed files with 1 additions and 1 deletions

View File

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