On Fri, May 22, 2026 at 2:45 PM Jeffrey Haas <[email protected]> wrote:

> Andy,
> On 5/22/26 17:13, Andy Bierman wrote:
>
> On Fri, May 22, 2026 at 7:47 AM Jeffrey Haas <[email protected]> wrote:
>
>> To refine the question:
>> If we have a key that the key node's type is currently a leafref, is
>> there any issue to deviate its type to something that isn't a leafref?  As
>> a specific example, deviate it to a string or integer?
>>
>>
> If you deviate the leaf type to something with a different base type
> (e.g. changing string to integer), then the client is expected to
> know what integer to send, as none of the standard ip-address values are
> accepted.
>
> The deviated type example is contrived. The point is that the neighbor,
> for the deviation case, is a locally preferred index value under control of
> the operator.
>
> Recall that part of the point is that the index node will NOT be the
> remote-address, but would share fate with it in our normal case.  As an
> example:
>
> Default case:
>
> neighbor['192.168.1.1']/neighbor-key = 192.168.1.1
>
> neighbor['192.168.1.1']/remote-address = 192.168.1.1
>
> Deviated case:
>
> neighbor['foo']/neighbor-key = 'foo'
>
> neighbor['foo']/remote-address = 192.168.1.1
>
> This is extremely bad practice.
>
> But not forbidden?
>

No


> -- Jeff
>


Andy
_______________________________________________
netmod mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to