Can Annotation file have two callpoints with same name?

Hi ,

Can Annotation file have two callpoints with same name?
In my case I have 2 keys in a xpath like below.
/dhcpv6:clientv6/dhcpv6:client-if{Key1}/dhcpv6:identity-associations/dhcpv6:identity-association{Key2}
5 4 3 2 1 0

Is it a good practice in case the first key is the main key which system is expecting and key 2 can be treated as just sub key.

I have used “/dhcpv6:clientv6/dhcpv6:client-if” as a xpath for the callpoint “xyz” (key1) and for “/dhcpv6:clientv6/dhcpv6:client-if{Key1}/dhcpv6:identity-associations/dhcpv6:identity-association” xpath again callpoint is “xyz”.

I guess, but there is no point doing so. The hkeypath argument passed in the callbacks allow multiple keys and one callpoint can handle everything in the model that is under the point where you attach it. In your example, you only need the first callpoint and confd will use get_netxt() to find correct element based on the keys.