Skip to content

Commit 61deaa3

Browse files
committed
CP-44106: Do not clear interface_order in networkdb
When xapi start, networkd config will be reset, see Xapi_pif.start_of_day_best_effort_bring_up. In fact, the interface_order is only maintained by networkd, it shouldn't be cleared. Signed-off-by: Changlei Li <[email protected]>
1 parent 98a8f38 commit 61deaa3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ocaml/networkd/bin/network_server.ml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ let on_timer () = write_config ()
111111

112112
let clear_state () =
113113
write_lock := true ;
114-
config := Network_config.empty_config
114+
(* Do not clear interface_order, it is only maintained by networkd *)
115+
config :=
116+
{Network_config.empty_config with interface_order= !config.interface_order}
115117

116118
let sync_state () =
117119
write_lock := false ;

0 commit comments

Comments
 (0)