Module Libvirt.Network


module Network: sig .. end
Module dealing with networks. Network.t is the network object.

type 'a t 
Network handle. Read-only handles have type ro Network.t and read-write handles have type rw Network.t.
val lookup_by_name : 'a Libvirt.Connect.t -> string -> 'a t
val lookup_by_uuid : 'a Libvirt.Connect.t -> Libvirt.uuid -> 'a t
val lookup_by_uuid_string : 'a Libvirt.Connect.t -> string -> 'a t
val create_xml : [> `W ] Libvirt.Connect.t -> Libvirt.xml -> Libvirt.rw t
val define_xml : [> `W ] Libvirt.Connect.t -> Libvirt.xml -> Libvirt.rw t
val undefine : [> `W ] t -> unit
val create : [> `W ] t -> unit
val destroy : [> `W ] t -> unit
val free : [> `R ] t -> unit
free network frees the network object in memory.

The network object is automatically freed if it is garbage collected. This function just forces it to be freed right away.

val get_name : [> `R ] t -> string
val get_uuid : [> `R ] t -> Libvirt.uuid
val get_uuid_string : [> `R ] t -> string
val get_xml_desc : [> `R ] t -> Libvirt.xml
val get_bridge_name : [> `R ] t -> string
val get_autostart : [> `R ] t -> bool
val set_autostart : [> `W ] t -> bool -> unit
val const : [> `R ] t -> Libvirt.ro t
const network turns a read/write network handle into a read-only network handle. Note that the opposite operation is impossible.