# File lib/facter/util/dhcp_servers.rb, line 26
  def self.device_dhcp_server(device)
    if Facter::Core::Execution.which('nmcli')
      # If the version is >= 0.9.9, use show instead of list
      if is_newer_nmcli?
        Facter::Core::Execution.exec("nmcli -f all d show #{device}").scan(/dhcp_server_identifier.*?(\d+\.\d+\.\d+\.\d+)$/).flatten.first
      else
        Facter::Core::Execution.exec("nmcli -f all d list iface #{device}").scan(/dhcp_server_identifier.*?(\d+\.\d+\.\d+\.\d+)$/).flatten.first
      end
    end
  end