Use new command for DHCP discovery check

Change-Id: Ifa1d51103dbca26fad9ef8526d06ab002b2320d2
Related-Bug: #1569325
Depends-On: I30e4c1614095291bf9a5cb144f15800d1bd6f850
This commit is contained in:
Artem Roma 2016-05-31 18:11:45 +03:00
parent 4df5a45042
commit a0c53594e8
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