06-01-2021 05:40 AM
Hi
We are unable to load the newly created Service Package with updated Yang, can someone please help why it's failing here?
reload-result {
package PE_CE_8_1
result false
info PE_CE_8_1-template.xml:246 Element: 'fib-quota' only exists for ned-id: npt12500_8.1.01060-nc-1.0:npt12500_8.1.01060-nc-1.0
}
should Template XML support all configured NEDs? because this FIb Quota is newly added in Yang and is only available in NED npt12500_8.1.01060-nc-1.0. other NED yang has no attribute "Fib-quota".
Regards
Abhinav R
Solved! Go to Solution.
06-03-2021 06:51 AM
Hi,
There's an option called if-ned-id you can add in your template so the processing is conditional on matching a specific ned (and the element you are concerned about). It's explained here https://community.cisco.com/t5/nso-developer-hub-discussions/error-element-only-exist-for-a-ned-id/td-p/4034137
thanks
R
06-03-2021 06:51 AM
Hi,
There's an option called if-ned-id you can add in your template so the processing is conditional on matching a specific ned (and the element you are concerned about). It's explained here https://community.cisco.com/t5/nso-developer-hub-discussions/error-element-only-exist-for-a-ned-id/td-p/4034137
thanks
R
06-06-2021 10:00 AM
Hi @RichardD2 ,
Thanks, I have added conditions as per the above resolution and now Sync-from passes successfully. Also, the result against that problematic template is True.
But, I am still not able to execute that service also that is not able in UI? any suggestions?
Thanks,
Abhinav R
06-07-2021 06:13 AM
What is the error that you are seeing in the UI? More info would be helpful. Maybe you can post a screenshot?
thanks
R
06-07-2021 09:15 AM
Hi @RichardD2 ,
There is no Error in UI or CLI, after adding conditions in XML for the package we are able to complete Sync-from successfully.
but we are not able to see the package in UI or CLI to proceed further for configuration.
Ex- after creating a package, we do package reload to highlight service in UI/CLI to do configuration. but hereafter successful configuration we still not able to see that newly created package available for configuration.
Thanks
Abhinav R
06-07-2021 10:16 AM
Ok, from the ncs_cli what is the output of 'show packages package oper-status'?
If your package doesn't even make it into the list, I would be checking to see that it's in the right directory.
The recommendation I follow is to make sure its in the packages directory
From the developer guide:
When NSO starts, it needs to search for packages to load. The ncs.conf parameter /ncs-config/
load-path defines a list of directories. At initial startup, NSO searches these directories for packages,
copies the packages to a private directory tree in the directory defined by the /ncs-config/statedir
parameter in ncs.conf, and loads and starts all the packages found. All .fxs (compiled YANG files)
and .ccl (compiled CLI spec files) files found in the directory load-dir in a package are loaded. On
subsequent startups, NSO will by default only load and start the copied packages - see the section called
“Loading Packages” for different ways to get NSO to search the load path for changed or added packages.
thanks
R
06-07-2021 11:21 PM
HI @RichardD2,
The below package is operationally up, but I am not able to see it to do configuration.
packages package PE_CE_8_1
oper-status up
admin@ncs(config)# PE
^
% Invalid input detected at '^' marker. >> Here is should auto-complete, but no luck.
Thanks
Abhinav R
06-08-2021 06:20 AM
In order to troubleshoot this further, we need to see the service package. Can you post your YANG model and XML template?
thank you,
R
06-08-2021 08:53 PM
06-09-2021 09:56 AM
Thanks for posting the files. At first glance, this block doesn't look correct:
</route-targets> <?if-ned-id npt12500_8.1.01060-nc-1.0:npt12500_8.1.01060-nc-1.0?> <?elif-ned-id npt1050_8.1.01060-nc-1.0:npt1050_8.1.01060-nc-1.0?>
I believe you need to make it look like:
</route-targets> <?if-ned-id npt12500_8.1.01060-nc-1.0:npt12500_8.1.01060-nc-1.0 npt1050_8.1.01060-nc-1.0:npt1050_8.1.01060-nc-1.0?>
You just need to separate the ned-ids with a space instead of using elif right after.
R
06-10-2021 02:32 AM
HI @RichardD2 ,
Changes done as per your above reply but still issue is there, we are not able to see the package for further configuration.
reload-result {
package PE_CE_8_1
result true
}
admin@ncs# PE
^
% Invalid input detected at '^' marker.
Thanks
Abhinav R
06-10-2021 06:05 AM
So you login to ncs_cli type 'PE' and then you get the error?
If you are wanting to deploy an instance of your service, you need to be in config mode
admin@ncs# conf Entering configuration mode terminal admin@ncs(config)#
Then type PE and enter the attributes for your service.
thanks
R
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