From d0215eda03d589b06d1b4903260e3c813e6c484b Mon Sep 17 00:00:00 2001 From: Guillaume Date: Wed, 18 Sep 2024 10:00:53 +0200 Subject: [PATCH] Use None4 if MODE is set to none Signed-off-by: Guillaume --- ocaml/networkd/lib/network_config.ml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ocaml/networkd/lib/network_config.ml b/ocaml/networkd/lib/network_config.ml index d9beb1b75c7..b306b580b32 100644 --- a/ocaml/networkd/lib/network_config.ml +++ b/ocaml/networkd/lib/network_config.ml @@ -135,9 +135,12 @@ let read_management_conf () = in let dns = (nameservers, domains) in (Static4 [(ip, prefixlen)], gateway, dns) - | "dhcp" | _ -> + | "dhcp" -> (DHCP4, None, ([], [])) + | _ -> + (None4, None, ([], [])) in + let phy_interface = {default_interface with persistent_i= true} in let bridge_interface = {default_interface with ipv4_conf; ipv4_gateway; persistent_i= true; dns}