hv/hv_kvp_daemon: Pass NIC name to hv_get_dns_info as well
authorVitaly Kuznetsov <vkuznets@redhat.com>
Tue, 12 Nov 2024 15:04:01 +0000 (16:04 +0100)
committerWei Liu <wei.liu@kernel.org>
Mon, 9 Dec 2024 18:44:15 +0000 (18:44 +0000)
commit07dfa6e821e1c58cbd0f195173dddbd593721f9b
tree23fec47a5f1fe044cbbce4f9f105b35e24313745
parent07a756a49f4b4290b49ea46e089cbe6f79ff8d26
hv/hv_kvp_daemon: Pass NIC name to hv_get_dns_info as well

The reference implementation of hv_get_dns_info which is in the tree uses
/etc/resolv.conf to get DNS servers and this does not require to know which
NIC is queried. Distro specific implementations, however, may want to
provide per-NIC, fine grained information. E.g. NetworkManager keeps track
of DNS servers per connection.

Similar to hv_get_dhcp_info, pass NIC name as a parameter to
hv_get_dns_info script.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Link: https://lore.kernel.org/r/20241112150401.217094-1-vkuznets@redhat.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
Message-ID: <20241112150401.217094-1-vkuznets@redhat.com>
tools/hv/hv_kvp_daemon.c