Skip to content

Commit edb0d81

Browse files
committed
xapi/nm: Send non-empty dns to networkd when using IPv6 autoconf
Because Autoconf is not DHCP, networkd uses the dns value to write to resolv.conf. This is done on ocaml/networkd/bin/network_server.ml line 745 This allows to have non-empty resolv.conf when using IPv6 autoconf. Signed-off-by: Pau Ruiz Safont <[email protected]>
1 parent a182d52 commit edb0d81

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ocaml/xapi/nm.ml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -634,6 +634,7 @@ let bring_pif_up ~__context ?(management_interface = false) (pif : API.ref_PIF)
634634
rc.API.pIF_ip_configuration_mode = `Static
635635
| `IPv6 ->
636636
rc.API.pIF_ipv6_configuration_mode = `Static
637+
|| rc.API.pIF_ipv6_configuration_mode = `Autoconf
637638
in
638639
let dns =
639640
match (static, rc.API.pIF_DNS) with

0 commit comments

Comments
 (0)