models.network_mapping module

class models.network_mapping.NetworkMapping(disable_network=None, preserve_mac_address=None, source_network_id=None, target_network_id=None)[source]

Bases: object

Implementation of the ‘NetworkMapping’ model.

Specifies the information needed when mapping the source networks to target networks during restore and clone actions.

disable_network (bool): Specifies if the network should be disabled.

On restore or clone of the VM, if the network should be kept in disabled state, set this flag to true. The mapped network is enabled by default.

preserve_mac_address (bool): Specifies if the source mac address

should be preserved after restore or clone. In case of collision of mac address on target network the job won’t fail. Address collision should be resolved manually.

source_network_id (long|int): Specifies the id of the source network. target_network_id (long|int): Specifies the id of target network.

classmethod from_dictionary(dictionary)[source]

Creates an instance of this model from a dictionary


dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server’s response. The keys MUST match property names in the API description.


object: An instance of this structure class.