cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1232
Views
5
Helpful
2
Replies

simulating Operational Data of device

ppratikdutta
Cisco Employee
Cisco Employee

list interface {
key name;

leaf name {
type string {
tailf:info "WORD;;Interface name";
}

}

}

list interface-oper {
config false;
key name;

leaf name {type string {
tailf:info "WORD;;Interface name";
}
}

leaf in-packets {
type yang:counter64;
config false;
}

}

 

 

 

 I have this yang file and I have to fake data of counter as oper data. Any idea of how can I do that in netconf .

1 Accepted Solution

Accepted Solutions

vleijon
Cisco Employee
Cisco Employee
Well, in netsim you can do it fairly easily using confd_load. For an example look at the router package in the examples collection.

To be more precise, look at start.sh in $NCS_DIR/examples.ncs/getting-started/developing-with-ncs/packages/router/netsim

View solution in original post

2 Replies 2

vleijon
Cisco Employee
Cisco Employee
Well, in netsim you can do it fairly easily using confd_load. For an example look at the router package in the examples collection.

To be more precise, look at start.sh in $NCS_DIR/examples.ncs/getting-started/developing-with-ncs/packages/router/netsim

@vleijon   trying to upload operational data using xml but getting stuck at 

confd_load: 613: cdb_connect(sock, CDB_DATA_SOCKET, addr, addrlen) failed: Bad protocol usage or unexpected retval (21): Library MAXDEPTH/MAXKEYLEN 20/9 for confd_hkeypath_t are too small, ConfD needs 47/4

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the NSO Developer community: