I have added a rule in my aaa-config.xml where for all groups, I deny update and delete operations for the contents of a list.
The corresponding yang file looks like this:
container Table A {
leaf A {}
leaf B {}
container Table {
list rec {
key id
leaf id{}
leaf desc {}
leaf type {}
leaf sub-type
}
}
}
Then I try to create a new record for the list using cli and direct rpc netconf message.
What I have observed is that if I use in confd_cli, load merge <conf.xml> then the operation sent to confd is “created” for the rec and then in the logs I see that the values are set for each parameter (desc,type,sub-type).
But if I try to use set in confd_cli then in confd the operation sent is " op update" for each parameter apart from the key and due to the rule I have added it fails.
Can you please explain to me how I can create a new record using cli, without providing the configuration in xml format?
I have also used an rpc netconf message with <default-operation>merge</default-operation> which succeeds as it also sends create instead of update.