sonata-nfv / tng-sdk-project

The 5GTANGO SDK tool to manage network service projects.
http://www.5gtango.eu
Apache License 2.0
5 stars 4 forks source link

Add get_ns_descriptor() function in project.py #35

Closed danifernandezcalv closed 6 years ago

danifernandezcalv commented 6 years ago

In the validation of the services we need this function to check the nsd files. This function already exist in the project.py of the son-cli, could be added in the new version of tng-sdk-project?

stefanbschneider commented 6 years ago

As discussed, I'll implement get_nsds() to return a list of paths to the NSDs (relative to the project root). Typically this list should include exactly one NSD path. But since projects may contain anything, it's possible that there is no NSD (and just test data for example) or even multiple NSDs.