Recently, new classes were added to NSO Python API that makes it easier to play with commit/re-deploy parameters. Let me show you some examples on how you can make your life easier:Setting CommitParams:General Steps:1) Create RW Maapi session and tra...
Hi,
I am using yanger to create the swagger documentation. I do not find a way to force the BaseURL to be https and not http and I need to change that by script.
Am I missing anything?
Roque
When querying via RESTCONF to NSO for an empty list, NSO returns with 204 NoContent. I was not able to find this behavior in the RFC8040 and I am getting challenged on why not to send 200OK and an empty JSON/XML.
Do we have any clear reference for ...
Hi,
Is there any pre-cooked way to get the size of a list via RESTCONF? For example, I need to get the number of devices in NSO.
I am now using the query API. but I wonder if we could use xpath in any clever way.
Roque
curl -X POST \
https:...
Hi,
I want to apply a boolean operation in the if-ned-id function, in particular an OR for two types of NEDs.
Is this supported?
Tried without success:
<?if-ned-id zte-nc-1-nc-1.0:zte-nc-1-nc-1.0 or if-ned-id hw-nc-1.0:hw-nc-1.0?>
<?(if-ned-id zt...
Hi, we are adding a wider set of capabilities on how to deal with these brownfield environments in NSO6.5. We should have a session in May's developers day. Please join us in Stockholm in May.
In the mean time, what can you do? For sure you can creat...
Hi, one possibility is that the ssh key is failing just because there is a key algorithm mismatch. This is a common problem due to recent security tightening rules both in NSO and the devices. So, please check the ned traces an test that it works fro...
I believe your problem comes from your pre-condition setting:
ncs:pre-condition {
ncs:monitor
"$SERVICE/plan/component[type='my-nano:cpe']/state[name='my-nano:cpe-created']" {
ncs:trigger-expr "status = 'reached'";
}
...
NSO filters the capabilities that I has negotiated with the device. You should check this using the following command:
admin@ncs# devices device 540 check-yang-modules verbose
It will report what capbalities you have in the NED vs what the device is ...
The answer is in the template developer guide: https://developer.cisco.com/docs/nso/guides/templates/#operations-on-ordered-lists-and-leaf-lists
NSO has the concept of "guard" for "order-by user" lists to prevent this specific problem. With the guard...