Note that pyang --ietf is just a thin wrapper around --lint, with IETF/IANA namespace and module prefixes.
At BBF we are happy to follow IETF recommendations, and require no warnings or errors when using: --strict --max-line-length=70 --lint --lint-modulename-prefix=bbf --lint-namespace-prefix=urn:bbf:yang: William > On 27 Jan 2017, at 23:18, Andy Bierman <a...@yumaworks.com> wrote: > > Hi, > > I think these guidelines should apply to other modules but using --ietf with > pyang is up > to the SDOs to decide. > > > Andy > > > On Fri, Jan 27, 2017 at 3:06 PM, Mahesh Jethanandani <mjethanand...@gmail.com > <mailto:mjethanand...@gmail.com>> wrote: > >> On Jan 27, 2017, at 11:23 AM, Andy Bierman <a...@yumaworks.com >> <mailto:a...@yumaworks.com>> wrote: >> >> Hi, >> >> The "pyang --ietf" validator checks the statement order used in >> data-def-stmts. >> There is no guideline that says this is required. >> RFC 7950 says canonical order is RECOMMENDED. >> >> 1) data-def sub-statement order >> Proposal: add new last sentence to sec. 4.6, para 3: >> >> YANG data definition sub-statements SHOULD be specified in canonical order. > > Not 6087bis specific … > > But is this IETF module specific? If not, should this not be checked by pyang > for all modules. > >> >> >> 2) enum/bit statement ordering >> >> Proposal: add new para 2 to sec 5.11.3: >> >> The 'enum' statements within an 'enumeration' data type SHOULD be >> specified in ascending order, based on the implied and/or explicit values >> of the 'value' sub-statement. The 'bit' statements within a 'bits' data type >> SHOULD be specified in ascending order, based on the implied and/or >> explicit values of the 'position' sub-statement. > > Ditto. > >> >> >> >> Andy >> >> _______________________________________________ >> netmod mailing list >> netmod@ietf.org <mailto:netmod@ietf.org> >> https://www.ietf.org/mailman/listinfo/netmod >> <https://www.ietf.org/mailman/listinfo/netmod> > > Mahesh Jethanandani > mjethanand...@gmail.com <mailto:mjethanand...@gmail.com> > > > > > _______________________________________________ > netmod mailing list > netmod@ietf.org > https://www.ietf.org/mailman/listinfo/netmod
_______________________________________________ netmod mailing list netmod@ietf.org https://www.ietf.org/mailman/listinfo/netmod