summaryrefslogtreecommitdiff
path: root/src/startup.mli
blob: abe731fdcf71ab4e4c2e3dcc1ad696d601c9d73f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
val panic : string -> 'a

val setup_logger : bool -> string option -> Lwt_log.template -> unit Lwt.t

val load_daemon_config : string -> Vyconf_config.t

val check_dirs : Directories.t -> unit

val create_socket : string -> Lwt_unix.file_descr Lwt.t

val create_server :
    (Lwt_unix.file_descr * Lwt_unix.sockaddr -> unit Lwt.t) ->
    Lwt_unix.file_descr -> unit -> 'a Lwt.t

val load_config : string -> (Vyos1x.Config_tree.t, string) result

val load_config_failsafe : string -> string -> Vyos1x.Config_tree.t

val load_interface_definitions : string -> (Vyos1x.Reference_tree.t, string) result