cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

913
Views
5
Helpful
2
Replies
ppratikdutta
Cisco Employee

simulating Operational Data of device

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

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

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