cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
955
Views
0
Helpful
0
Replies

How to get the composite Keys from NSO by using NB API

Raja.Selvaraj
Level 4
Level 4

Hi,

Would like to know, is there any way of getting only the keys or composite keys from NSO by using REST. I do not want get the full instancedata(above 3000 lines) from NSO, instead want to get only the keys List which is available in NSO. 

 

E.g:

list XXXInterfaceService {
key "node-name connection-type peer-node-name interface-connection-number";
uses ncs:service-data;
ncs:servicepoint XXXInterfaceService-servicepoint;

leaf node-name {
type string;
mandatory true;
}

leaf peer-node-name {
type string;
mandatory true;

}
leaf interface-connection-number {
type enumeration {
enum "1";
enum "2";
enum "3";
enum "4";
}
mandatory true;
}
leaf connection-type {
type leafref {
path "XXXX";
}
mandatory true;
}

.............................

..........................

}

 

Here is the sample YANG that i use but when this service exists in NSO, i Want to get only the composite keys(node-name connection-type peer-node-name interface-connection-number) from NB API.

0 Replies 0