11-03-2020 02:34 AM
I have just recently started working with Cisco NSO and I have been following these tutorials: "Understand how to use Cisco NSO to build a service for a specific configuration" (https://www.youtube.com/watch?v=AGVChkovQ7s) and "Cisco NSO, add Python logic to a service" (https://www.youtube.com/watch?v=4hCLAYbxjwE&feature=emb_title) .
Everything is working alright until minute 10:05 in the second video "Cisco NSO, add Python logic to a service". I successfully created the new package called "access" by using the ncs-make-package --service-skeleton python-and-template access command and altered the YANG and XML files as instructed in the video. After altering the main.py file and importing the resource_manager module, however, I received a problem when running the packages-reload command. It states that there is an error: ModuleNotFoundError: No module named resource_manager.
I have checked into my Cisco NSO configuration and saw that this resource_manager module is installed and it is located in the directory example.ncs/service-provider/virtual-mpls-vpn/packages/resource-manager/.
It is not clear to me why this particular error is being generated. Could someone explain to me why I am receiving this error and how I can fix it? Below I have attached two pictures, one from my main.py where it is shown how the resource_manager module is imported, and one from the generated error.
11-03-2020 10:36 AM
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide