Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num ClassDef bases NameLoad body Pass decorator_list ClassDef bases body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad NameLoad Dict body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Return AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Assign AttributeStore NameLoad attr NameLoad orelse Raise Call NameLoad BinOpMod Str Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults Dict body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Str Raise Call NameLoad Str decorator_list decorator_list
N/A N/A 
vimconn implement an Abstract class for the vim connector plugins
 with the definition of the method to be implemented.
 N/A __author__ Alfonso Tierno N/A __date__ $16-oct-2015 11:09:29$ N/A HTTP_Bad_Request 400 N/A HTTP_Unauthorized 401 N/A HTTP_Not_Found 404 N/A HTTP_Method_Not_Allowed 405 N/A HTTP_Request_Timeout 408 N/A HTTP_Conflict 409 N/A HTTP_Service_Unavailable 503 N/A HTTP_Internal_Server_Error 500 vimconnectorException N/A Exception N/A N/A N/A vimconnector N/A N/A N/A Abstract base class for all the VIM connector plugins
    These plugins must implement a vimconnector class deribed from this 
    and all these methods
     __init__ N/A N/A self uuid name tenant_id tenant_name url url_admin user passwd debug config N/A None None None True N/A N/A N/A N/A self id uuid N/A N/A self name name N/A N/A self url url N/A N/A self url_admin url_admin N/A N/A self tenant_id tenant_id N/A N/A self tenant_name tenant_name N/A N/A self user user N/A N/A self passwd passwd N/A N/A self config config N/A N/A self debug debug N/A __getitem__ N/A N/A self index N/A N/A N/A N/A index tenant_id N/A N/A N/A self tenant_id N/A N/A index tenant_name N/A N/A N/A self tenant_name N/A N/A N/A index id N/A N/A N/A self id N/A N/A N/A index name N/A N/A N/A self name N/A N/A N/A index user N/A N/A N/A self user N/A N/A N/A index passwd N/A N/A N/A self passwd N/A N/A N/A index url N/A N/A N/A self url N/A N/A N/A index url_admin N/A N/A N/A self url_admin N/A N/A N/A index config N/A N/A N/A self config N/A N/A N/A KeyError N/A Invalid key '%s' N/A str index N/A __setitem__ N/A N/A self index value N/A N/A N/A N/A index tenant_id N/A N/A N/A self tenant_id value N/A N/A index tenant_name N/A N/A N/A self tenant_name value N/A N/A N/A index id N/A N/A N/A self id value N/A N/A N/A index name N/A N/A N/A self name value N/A N/A N/A index user N/A N/A N/A self user value N/A N/A N/A index passwd N/A N/A N/A self passwd value N/A N/A N/A index url N/A N/A N/A self url value N/A N/A N/A index url_admin N/A N/A N/A self url_admin value N/A N/A N/A KeyError N/A Invalid key '%s' N/A str index N/A new_host N/A N/A self host_data N/A N/A N/A Adds a new host to VIM N/A Returns status code of the VIM response N/A N/A NotImplementedError Should have implemented this N/A new_external_port N/A N/A self port_data N/A N/A N/A Adds a external port to VIM N/A Returns the port identifier N/A N/A NotImplementedError Should have implemented this N/A new_external_network N/A N/A self net_name net_type N/A N/A N/A Adds a external network to VIM (shared) N/A Returns the network identifier N/A N/A NotImplementedError Should have implemented this N/A connect_port_network N/A N/A self port_id network_id admin N/A False N/A N/A Connects a external port to a network N/A Returns status code of the VIM response N/A N/A NotImplementedError Should have implemented this N/A new_tenant N/A N/A self tenant_name tenant_description N/A N/A N/A Adds a new tenant to VIM N/A Returns the tenant identifier N/A N/A NotImplementedError Should have implemented this N/A delete_tenant N/A N/A self tenant_id N/A N/A N/A Delete a tenant from VIM N/A Returns the tenant identifier N/A N/A NotImplementedError Should have implemented this N/A new_tenant_network N/A N/A self net_name net_type N/A N/A N/A Adds a tenant network to VIM N/A Returns the network identifier N/A N/A NotImplementedError Should have implemented this N/A get_network_list N/A N/A self filter_dict N/A N/A N/A N/A Obtain tenant networks of VIM
        Filter_dict can be:
            name: network name
            id: network uuid
            shared: boolean
            tenant_id: tenant
            admin_state_up: boolean
            status: 'ACTIVE'
        Returns the network list of dictionaries
         N/A N/A NotImplementedError Should have implemented this N/A get_tenant_network N/A N/A self net_id tenant_id N/A None N/A N/A Obtain tenant networks of VIM N/A Returns the network information from a network id N/A N/A NotImplementedError Should have implemented this N/A delete_tenant_network N/A N/A self net_id N/A N/A N/A Deletes a tenant network from VIM N/A Returns the network identifier N/A N/A NotImplementedError Should have implemented this N/A refresh_tenant_network N/A N/A self net_id N/A N/A N/A Refreshes the status of the tenant network N/A Returns: 0 if no error,
                    <0 if error N/A N/A NotImplementedError Should have implemented this N/A get_tenant_flavor N/A N/A self flavor_id N/A N/A N/A Obtain flavor details from the  VIM
            Returns the flavor dict details
         N/A N/A NotImplementedError Should have implemented this N/A new_tenant_flavor N/A N/A self flavor_data N/A N/A N/A Adds a tenant flavor to VIM N/A Returns the flavor identifier N/A N/A NotImplementedError Should have implemented this N/A delete_tenant_flavor N/A N/A self flavor_id N/A N/A N/A Deletes a tenant flavor from VIM N/A Returns the HTTP response code and a message indicating details of the success or fail N/A N/A NotImplementedError Should have implemented this N/A new_tenant_image N/A N/A self image_dict N/A N/A N/A 
        Adds a tenant image to VIM
        Returns:
            200, image-id        if the image is created
            <0, message          if there is an error
         N/A N/A NotImplementedError Should have implemented this N/A delete_tenant_image N/A N/A self image_id N/A N/A N/A Deletes a tenant image from VIM N/A Returns the HTTP response code and a message indicating details of the success or fail N/A N/A NotImplementedError Should have implemented this N/A new_tenant_vminstancefromJSON N/A N/A self vm_data N/A N/A N/A Adds a VM instance to VIM N/A Returns the instance identifier N/A N/A NotImplementedError Should have implemented this N/A new_tenant_vminstance N/A N/A self name description start image_id flavor_id net_list N/A N/A N/A Adds a VM instance to VIM
        Params:
            start: indicates if VM must start or boot in pause mode. Ignored
            image_id,flavor_id: image and flavor uuid
            net_list: list of interfaces, each one is a dictionary with:
                name:
                net_id: network uuid to connect
                vpci: virtual vcpi to assign
                model: interface model, virtio, e2000, ...
                mac_address: 
                use: 'data', 'bridge',  'mgmt'
                type: 'virtual', 'PF', 'VF', 'VFnotShared'
                vim_id: filled/added by this function
                #TODO ip, security groups
        Returns >=0, the instance identifier
                <0, error_text
         N/A N/A NotImplementedError Should have implemented this N/A get_tenant_vminstance N/A N/A self vm_id N/A N/A N/A Returns the VM instance information from VIM N/A N/A NotImplementedError Should have implemented this N/A delete_tenant_vminstance N/A N/A self vm_id N/A N/A N/A Removes a VM instance from VIM N/A Returns the instance identifier N/A N/A NotImplementedError Should have implemented this N/A refresh_tenant_vms_and_nets N/A N/A self vmDict netDict N/A N/A N/A Refreshes the status of the dictionaries of VM instances and nets passed as arguments. It modifies the dictionaries N/A Returns:
            - result: 0 if all elements could be refreshed (even if its status didn't change)
                      n>0, the number of elements that couldn't be refreshed,
                      <0 if error (foreseen)
            - error_msg: text with reference to possible errors
         N/A N/A NotImplementedError Should have implemented this N/A action_tenant_vminstance N/A N/A self vm_id action_dict N/A N/A N/A Send and action over a VM instance from VIM N/A Returns the status N/A N/A NotImplementedError Should have implemented this N/A host_vim2gui N/A N/A self host server_dict N/A N/A N/A Transform host dictionary from VIM format to GUI format,
        and append to the server_dict
         N/A N/A NotImplementedError Should have implemented this N/A get_hosts_info N/A N/A self N/A N/A N/A Get the information of deployed hosts
        Returns the hosts content N/A N/A NotImplementedError Should have implemented this N/A get_hosts N/A N/A self vim_tenant N/A N/A N/A Get the hosts and deployed instances
        Returns the hosts content N/A N/A NotImplementedError Should have implemented this N/A get_processor_rankings N/A N/A self N/A N/A N/A Get the processor rankings in the VIM database N/A N/A NotImplementedError Should have implemented this N/A get_image_id_from_path N/A N/A self path N/A N/A N/A Get the image id from image path in the VIM database N/A Returns:
             0,"Image not found"   if there are no images with that path
             1,image-id            if there is one image with that path
             <0,message            if there was an error (Image not found, error contacting VIM, more than 1 image with that path, etc.) 
         N/A N/A NotImplementedError Should have implemented this N/A N/A