mcvirt.node.network package

Submodules

mcvirt.node.network.factory module

Provide class for generating network objects

class mcvirt.node.network.factory.Factory[source]

Bases: mcvirt.rpc.pyro_object.PyroObject

Class for obtaining network objects

OBJECT_TYPE = 'network'
check_exists(name)[source]

Check if a network exists

create(*args, **kwargs)
ensure_exists(name)[source]

Ensure network exists

get_all_network_names()[source]

Return a list of network names

get_all_network_objects()[source]

Return all network objects

get_network_by_name(network_name)[source]

Return a network object of the network for a given name.

get_network_list_table()[source]

Return a table of networks registered on the node

interface_exists(interface)[source]

Public method for to determine if an interface exists

mcvirt.node.network.network module

Provide interface to libvirt network objects

class mcvirt.node.network.network.Network(name)[source]

Bases: mcvirt.rpc.pyro_object.PyroObject

Provides an interface to LibVirt networks

delete(*args, **kwargs)
get_adapter()[source]

Return the name of the physical bridge adapter for the network

get_name()[source]

Return the name of the network

static get_network_config()[source]

Return the network configuration for the node

Module contents