CN-UPB / pg-scrambLe

Main repository, wiki, and issue tracker of PG SCrAMblE
1 stars 0 forks source link

Plugin code review and improvements #59

Closed ashwinprasadme closed 5 years ago

ashwinprasadme commented 5 years ago

Some notes on current plugin implementation - Link

Line# - Comment

37,165,170 - installing and using numpy only for random selection? not the best idea 154 - random_combination function, im sure, can be much simpler. 159- using two lists for id and names and matching based on index? not the best idea, use dict 173 - interesting way to find the other set. but does this solution scale for n-split? 177- can instead use dict, consider when extending support for n-split 205, 230 - hardcode. find solution for service discovery 257 - generatePackage returns false if it doesnt work. use if to confirm this (error handling) 261-263, 324 - move hardcode to config.py 271 - change HOST_URL to host 296 - to get the VIM list you can use get_vims_list() function from wrappers.SONATAClient.admin.py 335 - this needs to be supported by adaptor 318 - while doing this, can maintain a dict of all items with fields like ip, name, etc

General Comments

ashwinprasadme commented 5 years ago

Some were fixed