> On Feb 27, 2019, at 6:16 AM, Balázs Lengyel <[email protected]> 
> wrote:
> 
> feature oldFeature {
>   status obsolete;
> }
> leaf myTimer {
>   if-feature oldFeature ;
>   mandatory true;
>   config true;
>   status current;
>   type string;
> }
> So should I configure myTimer or not? I assume yes, correct?

This issue is captured here: https://github.com/netmod-wg/yang-next/issues/27, 
which was updated as of this morning with this very example.

Of course, the problem is in RFC 7950:

   o  "obsolete" means that the definition is obsolete and SHOULD NOT be
      implemented and/or can be removed from implementations.

I recommend replacing "SHOULD NOT be implemented" with "is not implemented".   

Then the answer to your question above would be "no", as "if-feature" takes 
precedence.

Kent




_______________________________________________
netmod mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/netmod

Reply via email to