Module ImportFrom alias Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias identifier ImportFrom alias TryExcept body ImportFrom alias identifier handlers ExceptHandler type NameLoad body ImportFrom alias identifier ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias TryExcept body Import alias Assign NameStore NameLoad handlers ExceptHandler type NameLoad body Assign NameStore NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str Assign NameStore Dict Num Num Num Num Num Num Num Num AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr FunctionDef arguments args NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Raise Call NameLoad BinOpAdd Str Str Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return CompareEq Call AttributeLoad NameLoad attr keyword Num Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Return CompareEq Call AttributeLoad NameLoad attr Num decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num body Expr Str If BoolOpOr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword Num Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad If NameLoad body Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Str Assign NameStore BinOpMod Str TupleLoad Call NameLoad Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad NameLoad With Call NameLoad NameLoad Str NameStore body FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list Expr Call AttributeLoad NameLoad attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad Str Str Str Str Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore ListComp Call AttributeLoad NameLoad attr keyword NameLoad comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore TupleLoad ListLoad ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body If Call NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore Dict Str Str Str Str Str Str Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpDiv NameLoad Num NameLoad NameLoad Assign NameStore Call NameLoad keyword Call AttributeLoad NameLoad attr keyword Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad If CompareNotEq Call AttributeLoad NameLoad attr Str body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Assign NameStore ListLoad Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore ListLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Dict For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad NameLoad attr Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot NameLoad body Continue Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad Index Num Assign NameStore SubscriptLoad NameLoad Index Num Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr NameLoad Return NameLoad decorator_list decorator_list
N/A __future__ with_statement N/A re N/A os N/A time N/A platform N/A subprocess N/A mimetypes os.path join pjoin collections defaultdict N/A N/A lxml etree ET N/A N/A N/A ImportError N/A xml.etree ElementTree ET libcloud.compute.base NodeDriver Node libcloud.compute.base NodeState libcloud.compute.types Provider libcloud.utils.networking is_public_subnet N/A N/A N/A libvirt N/A have_libvirt True N/A N/A N/A ImportError N/A N/A have_libvirt False LibvirtNodeDriver N/A NodeDriver N/A N/A 
    Libvirt (http://libvirt.org/) node driver.

    To enable debug mode, set LIBVIR_DEBUG environment variable.
     N/A type N/A Provider LIBVIRT N/A name Libvirt N/A website http://libvirt.org/ N/A NODE_STATE_MAP N/A 0 1 2 3 4 5 6 7 N/A NodeState TERMINATED N/A NodeState RUNNING N/A NodeState PENDING N/A NodeState TERMINATED N/A NodeState TERMINATED N/A NodeState TERMINATED N/A NodeState UNKNOWN N/A NodeState UNKNOWN __init__ N/A N/A self uri N/A N/A N/A 
        :param  uri: Hypervisor URI (e.g. vbox:///session, qemu:///system,
                     etc.).
        :type   uri: ``str``
         N/A N/A have_libvirt N/A N/A N/A RuntimeError N/A Libvirt driver requires 'libvirt' Python  package N/A N/A self _uri uri N/A N/A self connection N/A N/A libvirt open uri N/A list_nodes N/A N/A self N/A N/A N/A domains N/A N/A N/A self connection listAllDomains N/A nodes N/A N/A self _to_nodes domains domains N/A nodes N/A reboot_node N/A N/A self node N/A N/A N/A domain N/A N/A self _get_domain_for_node node node N/A N/A N/A N/A domain reboot flags 0 0 N/A destroy_node N/A N/A self node N/A N/A N/A domain N/A N/A self _get_domain_for_node node node N/A N/A N/A N/A domain destroy 0 N/A ex_start_node N/A N/A self node N/A N/A N/A 
        Start a stopped node.

        :param  node: Node which should be used
        :type   node: :class:`Node`

        :rtype: ``bool``
         N/A domain N/A N/A self _get_domain_for_node node node N/A N/A N/A N/A domain create 0 N/A ex_shutdown_node N/A N/A self node N/A N/A N/A 
        Shutdown a running node.

        Note: Usually this will result in sending an ACPI event to the node.

        :param  node: Node which should be used
        :type   node: :class:`Node`

        :rtype: ``bool``
         N/A domain N/A N/A self _get_domain_for_node node node N/A N/A N/A N/A domain shutdown 0 N/A ex_suspend_node N/A N/A self node N/A N/A N/A 
        Suspend a running node.

        :param  node: Node which should be used
        :type   node: :class:`Node`

        :rtype: ``bool``
         N/A domain N/A N/A self _get_domain_for_node node node N/A N/A N/A N/A domain suspend 0 N/A ex_resume_node N/A N/A self node N/A N/A N/A 
        Resume a suspended node.

        :param  node: Node which should be used
        :type   node: :class:`Node`

        :rtype: ``bool``
         N/A domain N/A N/A self _get_domain_for_node node node N/A N/A N/A N/A domain resume 0 N/A ex_take_node_screenshot N/A N/A self node directory screen N/A 0 N/A N/A 
        Take a screenshot of a monitoring of a running instance.

        :param node: Node to take the screenshot of.
        :type node: :class:`libcloud.compute.base.Node`

        :param directory: Path where the screenshot will be saved.
        :type directory: ``str``

        :param screen: ID of the monitor to take the screenshot of.
        :type screen: ``int``

        :return: Full path where the screenshot has been saved.
        :rtype: ``str``
         N/A N/A N/A N/A N/A N/A os path exists directory N/A N/A N/A N/A os path isdir directory N/A N/A N/A ValueError Invalid value for directory argument N/A domain N/A N/A self _get_domain_for_node node node N/A stream N/A N/A N/A self connection newStream N/A mime_type N/A N/A domain screenshot stream stream screen 0 N/A extensions N/A N/A mimetypes guess_all_extensions type mime_type N/A extensions N/A N/A extension N/A extensions N/A 0 N/A N/A extension .png N/A name N/A screenshot-%s%s N/A N/A int N/A N/A time time extension N/A file_path N/A pjoin directory name N/A N/A open file_path wb fp N/A write N/A N/A stream buf opaque N/A N/A N/A N/A N/A fp write buf N/A N/A N/A N/A stream recvAll write None N/A N/A N/A N/A N/A stream finish N/A N/A N/A Exception N/A N/A N/A file_path N/A ex_get_hypervisor_hostname N/A N/A self N/A N/A N/A 
        Return a system hostname on which the hypervisor is running.
         N/A hostname N/A N/A N/A self connection getHostname N/A hostname N/A ex_get_hypervisor_sysinfo N/A N/A self N/A N/A N/A 
        Retrieve hypervisor system information.

        :rtype: ``dict``
         N/A xml N/A N/A N/A self connection getSysinfo N/A etree N/A N/A ET XML xml N/A attributes N/A bios system processor memory_device N/A sysinfo N/A N/A attribute attributes N/A N/A element N/A N/A etree find attribute N/A entries N/A N/A self _get_entries element element N/A N/A sysinfo N/A attribute entries N/A sysinfo N/A _to_nodes N/A N/A self domains N/A N/A N/A nodes N/A N/A N/A self _to_node domain domain N/A domain domains N/A nodes N/A _to_node N/A N/A self domain N/A N/A N/A N/A state max_mem memory vcpu_count used_cpu_time N/A N/A domain info N/A state N/A N/A N/A self NODE_STATE_MAP get state N/A NodeState UNKNOWN N/A N/A public_ips private_ips N/A N/A N/A N/A ip_addresses N/A N/A self _get_ip_addresses_for_domain domain N/A ip_address ip_addresses N/A N/A N/A is_public_subnet ip_address N/A N/A N/A N/A public_ips append ip_address N/A N/A N/A N/A private_ips append ip_address N/A extra N/A uuid os_type types used_memory vcpu_count used_cpu_time N/A N/A domain UUIDString N/A N/A domain OSType N/A N/A N/A self connection getType N/A memory 1024 vcpu_count used_cpu_time N/A node N/A Node id N/A N/A domain ID name N/A N/A domain name state state public_ips public_ips private_ips private_ips driver self extra extra N/A N/A node _uuid N/A N/A domain UUIDString N/A node N/A _get_ip_addresses_for_domain N/A N/A self domain N/A N/A N/A 
        Retrieve IP addresses for the provided domain.

        Note: This functionality is currently only supported on Linux and
        only works if this code is run on the same machine as the VMs run
        on.

        :return: IP addresses for the provided domain.
        :rtype: ``list``
         N/A result N/A N/A N/A N/A N/A platform system Linux N/A N/A result N/A mac_addresses N/A N/A self _get_mac_addresses_for_domain domain domain N/A cmd N/A arp -an N/A child N/A N/A subprocess Popen cmd stdout N/A subprocess PIPE stderr N/A subprocess PIPE N/A N/A stdout _ N/A N/A child communicate N/A arp_table N/A N/A self _parse_arp_table arp_output stdout N/A mac_address mac_addresses N/A N/A N/A mac_address arp_table N/A N/A ip_addresses N/A arp_table N/A mac_address N/A N/A N/A result extend ip_addresses N/A result N/A _get_mac_addresses_for_domain N/A N/A self domain N/A N/A N/A 
        Parses network interface MAC addresses from the provided domain.
         N/A xml N/A N/A domain XMLDesc N/A etree N/A N/A ET XML xml N/A elems N/A N/A etree findall devices/interface[@type='network']/mac N/A result N/A N/A elem elems N/A N/A mac_address N/A N/A elem get address N/A N/A N/A result append mac_address N/A result N/A _get_domain_for_node N/A N/A self node N/A N/A N/A 
        Return libvirt domain object for the provided node.
         N/A domain N/A N/A N/A self connection lookupByUUIDString N/A node uuid N/A domain N/A _get_entries N/A N/A self element N/A N/A N/A 
        Parse entries dictionary.

        :rtype: ``dict``
         N/A elements N/A N/A element findall entry N/A result N/A N/A element elements N/A N/A name N/A N/A element get name N/A value N/A element text N/A N/A result N/A name value N/A result N/A _parse_arp_table N/A N/A self arp_output N/A N/A N/A 
        Parse arp command output and return a dictionary which maps mac address
        to an IP address.

        :return: Dictionary which maps mac address to IP address.
        :rtype: ``dict``
         N/A lines N/A N/A arp_output split N/A arp_table N/A defaultdict list N/A line lines N/A N/A match N/A N/A re match .*?\((.*?)\) at (.*?)\s+ line N/A N/A match N/A N/A N/A groups N/A N/A match groups N/A ip_address N/A groups N/A 0 N/A mac_address N/A groups N/A 1 N/A N/A N/A N/A arp_table N/A mac_address append ip_address N/A arp_table N/A N/A