package albatross

  1. Overview
  2. Docs

Module Vmm_core.NameSource

Sourcetype t
Sourcetype path
Sourceval equal : t -> t -> bool
Sourceval pp : t Fmt.t
Sourceval valid_label : string -> bool
Sourceval path : t -> path
Sourceval name : t -> string option
Sourceval create : path -> string -> (t, [> `Msg of string ]) result
Sourceval create_of_path : path -> t
Sourceval create_exn : path -> string -> t
Sourceval drop_prefix_exn : t -> path -> t
Sourceval drop_path : t -> t
Sourceval to_list : t -> string list
Sourceval of_list : string list -> (t, [> `Msg of string ]) result
Sourceval path_to_string : path -> string
Sourceval path_of_string : string -> (path, [> `Msg of string ]) result
Sourceval to_string : t -> string
Sourceval of_string : string -> (t, [> `Msg of string ]) result
Sourceval path_to_list : path -> string list
Sourceval path_of_list : string list -> (path, [> `Msg of string ]) result
Sourceval root_path : path
Sourceval is_root_path : path -> bool
Sourceval parent_path : path -> path
Sourceval root : t
Sourceval is_root : t -> bool
Sourceval append_path : path -> string -> (path, [> `Msg of string ]) result
Sourceval append_path_exn : path -> string -> path
Sourceval image_file : t -> Fpath.t
Sourceval fifo_file : t -> Fpath.t
Sourceval block_name : t -> string -> t
Sourceval 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

OCaml

Innovation. Community. Security.