03-22-2022 12:33 AM - edited 03-22-2022 01:55 AM
I have many service package deploy in NSO. We have many developer creating different package for there working , is there is something like tag we can assign in package-meta-data.xml of service package. Like if A team working on there service package they add A somewhere in service package .
And by RestConf api we can get A specific service package.
Is it is possible to tag some service package , so we fetch them only from rest api of NSO?
03-22-2022 02:14 AM
I think, you should keep a baseline of service package and create new package for different developers and manage them with the 'servicepoint' tag within src/yang & template files while creating the package itself.
You will have to change the 'namespace' & 'prefix' tags in /src/yang/{service-package}.yang file as well and try loading them so that they appear as separate packages.
Another way could be create different nso instances for different teams/developers.
May be others can also help, cause I have also faced this problem, but not at a big scale.
03-22-2022 02:40 AM
03-23-2022 03:59 AM - edited 03-23-2022 04:18 AM
I am new to this service package creation thing @snovello . I have this type of yang files in service packages.
module abc { namespace "http://com/example/abc"; yang-version 1.1; prefix abc; import ietf-inet-types { prefix inet; } import tailf-ncs { prefix ncs; } import tailf-common { prefix tailf; } augment /ncs:services/ { list abc { key name; uses ncs:service-data; ncs:servicepoint "abc"; leaf name { type string; } // list of devices (or device groups) to subscribe to the service leaf-list device { type leafref { path "/ncs:devices/ncs:device/ncs:name"; } } } } }
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