package albatross

  1. Overview
  2. Docs
type t
type path
val equal : t -> t -> bool
val pp : t Fmt.t
val valid_label : string -> bool
val path : t -> path
val name : t -> string option
val create : path -> string -> (t, [> `Msg of string ]) Stdlib.result
val create_of_path : path -> t
val create_exn : path -> string -> t
val drop_prefix_exn : t -> path -> t
val drop_path : t -> t
val to_list : t -> string list
val of_list : string list -> (t, [> `Msg of string ]) Stdlib.result
val path_to_string : path -> string
val path_of_string : string -> (path, [> `Msg of string ]) Stdlib.result
val to_string : t -> string
val of_string : string -> (t, [> `Msg of string ]) Stdlib.result
val path_to_list : path -> string list
val path_of_list : string list -> (path, [> `Msg of string ]) Stdlib.result
val root_path : path
val is_root_path : path -> bool
val parent_path : path -> path
val root : t
val is_root : t -> bool
val append_path : path -> string -> (path, [> `Msg of string ]) Stdlib.result
val append_path_exn : path -> string -> path
val image_file : t -> Fpath.t
val fifo_file : t -> Fpath.t
val block_name : t -> string -> t
val mac : t -> string -> Macaddr.t

mac t bridge outputs deterministically a mac address for t on bridge. The resulting mac address is computed as follows: as prefix, the (no longer active) 00:80:41 (VEB Kombinat Robotron) is used, the remaining three bytes are the first three bytes of the MD5 digest of bridge ^ "." ^ to_string t.

i.e., mac ["foo";"bar"] "default" = 00:80:41:1b:11:78