May 7, 2015, 5:03:18 AM5/7/15
to libne...@googlegroups.com, delucchi...@gmail.com
I have been busy for a long time, but now I'm working again on libnetconf. Unfortunately I'm not able to solve my problem. I follow your precious advises, but nothing happens. The configuration in the datastore is the same after the edit-config message.
It is possible that my problem is related to the edit-config parameters not properly set?
Below there is my code:
nc_rpc_editconfig(NC_DATASTORE_CANDIDATE, NC_DATASTORE_CONFIG, NC_EDIT_DEFOP_MERGE, NC_EDIT_ERROPT_CONT, NC_EDIT_TESTOPT_SET, s.c_str());
in this case nothing happens.
Instead in this case (changing NC_EDIT_DEFOP_MERGE to NC_EDIT_DEFOP_REPLACE)
nc_rpc_editconfig(NC_DATASTORE_CANDIDATE, NC_DATASTORE_CONFIG, NC_EDIT_DEFOP_REPLACE, NC_EDIT_ERROPT_CONT, NC_EDIT_TESTOPT_SET, s.c_str());
All the candidate database is overwritten.
Any other advises?
Thank you again,