We work with an extremely large schema close to 2500 lines. We are maintaining a list of mac-address.
container server {
list database {
key “ip”;
unique “ip”;
leaf ip {
type inet:ip-address;
}
leaf name {
type string;
}
leaf m----n;
}
}
I have subscribed for any changes to the list CREATE / DELETE and entry using
if ((status_ = cdb_subscribe(subsock_, 0, network__ns, &headpoint_,
“/server/database/”)) != CONFD_OK)
{
std::cerr << “Terminate: subscribe.” << status_ << std::endl;
return e_confd_failure;
}
But I am also interested in any change to leaf name. When I use the cdb_diff_iter, the iterator halts at MOP_MODIFIED. But I cannot access the xmltag name. The tag ends at database.
I am not very keen on using cdb_get_modifications since there are many leaves under the list and I am not interested in any of them. I only need to address the changes to particular leaf. Please help!