From b19509b452fdbac15a462bb89b0087c631d4d49a Mon Sep 17 00:00:00 2001 From: Artem Roma Date: Mon, 6 Jun 2016 12:05:20 +0300 Subject: [PATCH] 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 --- mcagents/net_probe.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mcagents/net_probe.rb b/mcagents/net_probe.rb index d55ab245..56acfead 100644 --- a/mcagents/net_probe.rb +++ b/mcagents/net_probe.rb @@ -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