What means do I have in Yang to refer to all the values under interfaceType from somewhere else in the YANG module ? I considered leafref or identityref or but couldn’t see how this might help. Also can’t define a YANG compatible XPATH expression for this.
Thanks a lot, but your solution will provide the interface type only of a specific interface pointed to by the interface name. I’ll try to clarify: Suppose that somewhere else I have a leaf-list L of the same type as interface type. I want this leaf-list to refer to all interface types in the InterfaceList, that is per each interface type in the InterfaceList there should be a corresponding element in L.
Well, to be truthfull, all YANG become code and then 1s and 0s and so on. In this case you need to contribute with a small piece of code to help ConfD do what you want to do. ConfD accepts C, Python, Java, or Erlang at this time.