Module Corosync_tools.Cfgtool

val local_get : unit -> (int, Corosync_lib.Corotypes.CsError.t) Stdlib.result

local_get () returns the nodeid of the node on which this function is called.

val reload_config : unit -> (unit, Corosync_lib.Corotypes.CsError.t) Stdlib.result

realod_config () will ask corosync to reload config on the current node.

val get_node_addrs : int -> (Corosync_lib.Cfg.cfg_node_address list, Corosync_lib.Corotypes.CsError.t) Stdlib.result

get_node_addrs nodeid returns the addresses of the node with id nodeid. Note that Corosync 3 supports multiple homing, so there could be multiple addresses for one node.