Re: [netmod] YANG identities and identityref's

2018-05-03 Thread Acee Lindem (acee)
On 5/3/18, 4:23 PM, "Martin Bjorklund" wrote: "Acee Lindem (acee)" wrote: > > > On 5/3/18, 2:40 PM, "Ladislav Lhotka" wrote: > > On Thu, 2018-05-03 at 18:00 +, Acee Lindem (acee) wrote: > > Hi Lada,

Re: [netmod] YANG identities and identityref's

2018-05-03 Thread Martin Bjorklund
"Acee Lindem (acee)" wrote: > > > On 5/3/18, 2:40 PM, "Ladislav Lhotka" wrote: > > On Thu, 2018-05-03 at 18:00 +, Acee Lindem (acee) wrote: > > Hi Lada, > > > > So you have a base identify of foo-type and subordinates of > >

Re: [netmod] YANG identities and identityref's

2018-05-03 Thread Acee Lindem (acee)
Hi Lada, So you have a base identify of foo-type and subordinates of foo-type-1, foo-type-2, ... foo-type-9. You have a data leaf that type identityref foo-type but the actual instantiation is not one of the known foo-types. Should a foo-type-unknown be defined to return for this case or

Re: [netmod] YANG identities and identityref's

2018-05-03 Thread Ladislav Lhotka
Hi Acee, I am not sure what you mean by unknown identities. In general, the identity used as the base of an identityref (or in Xpath functions derived-from/derived-from- or-self) should be the most general identity that can match at the given place. Do you have any example illustrating your

[netmod] YANG identities and identityref's

2018-05-03 Thread Acee Lindem (acee)
Let’s say one define a base identity with a hierarchy of identifyref’s using it. This will allow for augmentation in future models. Should one also define an identityref for the class of unknown identities? Or, should one simply return the lowest parent in the hierarchy matching the value? Many