I have modified users.yang to add a must statement as below
container users {
tailf:callpoint simple-aaa {
tailf:transform true;
}
must "user/enabled='true'" {
error-message "At least one account needs to be enabled.";
}
When i add a user node in aaa_init.xml and run confd i am getting bellow error
31-Jul-2020::17:52:40.092 confd[15829]: - CDB load: processing file: ./confd-cdb/aaa_init.xml
31-Jul-2020::17:52:40.125 confd[15829]: - no registration found for callpoint simple-aaa/get_elem of type=external
31-Jul-2020::17:52:40.135 confd[15829]: - CDB boot error: failed to load ./confd-cdb/aaa_init.xml:59: application communication failure
ahh, mea culpa again i didn’t notice/ignored this initially:
When i add a user node in aaa_init.xml
From the above, and error encountered, I assume that you tried to add node to the /users YANG subtree, that is managed by callpoint.
The _init.xml are CDB init files. The transformed YANG model though is not stored in CDB per say, and thus cannot be used to initialize data in this way.
Imho, the ideal approach is to prepare _init.xml file contents with CDB data - /aaa:aaa/authentication/users, not the one managed/transformed by callpoint - /users.