Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
patch xapi-24.19.2-keep-ipv6-management-disable
  • Loading branch information
gthvn1 committed Feb 6, 2025
commit e08bd709b3286839c144870d3d37858915fbcb89
6 changes: 5 additions & 1 deletion ocaml/xapi/xapi_host.ml
Original file line number Diff line number Diff line change
Expand Up @@ -1301,7 +1301,11 @@ let management_disable ~__context =
raise
(Api_errors.Server_error (Api_errors.slave_requires_management_iface, [])) ;
(* Reset the management server *)
Xapi_mgmt_iface.change "" `IPv4 ;
let management_address_type =
Record_util.primary_address_type_of_string
Xapi_inventory.(lookup _management_address_type)
in
Xapi_mgmt_iface.change "" management_address_type ;
Xapi_mgmt_iface.run ~__context ~mgmt_enabled:false () ;
(* Make sure all my PIFs are marked appropriately *)
Xapi_pif.update_management_flags ~__context
Expand Down