![]() Implement the relevant functions.ĭO NOT change the method names, parameters or parameter content. Copy one of the existing, there are several connectors already created to be used as example as openstack. Other keys are injected using the private key.Ĭreate a new plugin folder RO-VIM-XXX. In current version it stores the private an public ssh-key (one different per NS) used to inject keys to the VM. This is used to store important internal information over a NS. It can contains also several “CREATE” tasks, each one with different target_record (place where to update the result) Note that same ro_task can contain tasks for several NS. Used for common netslice VLDs for different NSs task_id : action_id:task_index status : SCHEDULED, DONE, ERROR action : CREATE, EXEC, DELETE item : vdu, net, flavor, image, sdn-net target_record : nsrs::path.to.entry.to.update or vnfrs::path.to,update target_record_id : The identity of the element with the format nsrs::path.id common_id : used to indentify the same element for different NS. In case locked crashes target_id : has the format "vim:vim_id", "sdn:sdnc_id" or "wim:wim_id" vim_info : # object with vim_information needed to maintain and delete: created : False, If the item has been created by OSM and then need to be deleted created_items : extra information returned by plugins and used by them to delete vim_id : internal VIM id vim_name : internal VIM name vim_status : internal VIM status vim_details : text with error message refresh_at : when this information needs to be refreshed modified_at : when it has been modified created_at : when it has been created to_check_at : when it needs to be processed/refreshed tasks : # list with - action_id : all tasks has one action id, normally the nslcmop_id instantiate, scale, terminate nsr_id : NS id where this task belong. After some time it is considered unlocked automatically. _id : unique id locked_by : just for debugging locked_at : Time (with up to 6 decimals) when this is locked. Validation.py Contain jsonschema to validate input content of http Html_out.py Just to serve a developer simple UI Read kafka topics for VIM/SDNCs/WIM (broadcast mode over all RO workers) and order to load/check/unload.ĭetect unattended ro_tasks (among others because a crass of a previos RO worker) and order to load this VIM/SDNC/WIM to start processing these ro_tasks (done by vim_watcher method) Updates and unlock ro_task (by setting locked_at with current time minus LOCKED_TIME) ![]() Then updates database ( target_record) with the result Classes VimInteraction are used for that. Locks it by writing at locked_at current time. Looks for ro_tasks where to_check_at less than current time, target_id one of its vim list, locked_at less than current time minus LOCKED_TIME ![]() It performs a lock/unlock writing in a key locked_at for HA exclusiveness processing: Stop processing ro_tasks of this VIM/SDNC/WIMĪpart from reading this queue, its main work is reading and processing pending ro_tasks. Load_vim/ reload_vim: to load or reload a VIM/SDNC/WIM and start processing ro_tasks of this elementĬheck_vim: Load if needed a VIM/SDNC/WIM, check connectivity and credentials and update its status on database Ns_thread.py Manage and perform all the ro_tasks of one, or several VIM/SDNC/WIM This module also manages the creation of ns_threads and track the VIMs/SDNCs/WIMs that they are processing Method delete: remove database entries for a NS when no longer is needed. Method status: get status of a previously created action. Otherwise a new id is created an returned for later polling. An action id can be provided (normally equal to the nslcmop_id). Same method is used for a new instantiation, scale or termination (empty target). It create tasks (database ro_tasks) to accomplish target. It computes differences between current deployment (read from database nsrs and vnfrs) and target deployment in the body of the http requests. Method deploy: Used for create/delete/modify a NS. vnf-vld-id : mgmtnet # connect to vnf vld. cloud_init_content : interfaces : - mgmt-interface : True mgmt-vnf : True name : eth0 ns-vld-id : mgmtnet # connect to ns vld. RO will append a suffix if already present, to have it unique.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |