Yes, I'd noticed that. Does this make the behaviour 'undefined' in YANG 1.0?
William -----Original Message----- From: Dale R. Worley [mailto:[email protected]] Sent: 23 March 2017 14:44 To: Martin Bjorklund <[email protected]> Cc: William Ivory <[email protected]>; Nick Brown <[email protected]>; [email protected] Subject: Re: [netmod] Interaction of 'when' and 'default' statements Martin Bjorklund <[email protected]> writes: > William Ivory <[email protected]> wrote: >> Thanks. Can you point me at the part of RFC 6020 that explicitly >> states that 'when' wins over 'default'? > > Section 7.6.1 of RFC 7950 says: > > Note that if the leaf or any of its ancestors has a "when" condition > or "if-feature" expression that evaluates to "false", then the > default value is not in use. Or perhaps more to the point, beware that RFC 6020 does *not* have that paragraph. Dale _______________________________________________ netmod mailing list [email protected] https://www.ietf.org/mailman/listinfo/netmod
