Closed llhotka closed 2 years ago
This seems reasonable, since the last paragraph isn't part of the TLP.
However, it might be useful to still check for the last paragraph if the module is an IETF module (name is ietf-...)
I would then change it to a warning, as RFC 8407 doesn't require this exact wording.
Agreed. But note that the current test is also just a warning.
Aha, OK, isn't it that all warnings are turned into errors in --strict
or --ietf
modes?
Anyhow, given that pyang --ietf
is involved in several places of the RFC workflow, I think it should interfere with it only in case of violating RFC 8407 requirements. We cannot expect an RFC editor to be able to judge whether pyang's complaints may be ignored or not.
In the
--ietf
mode, pyang checks for the presence of IETF Trust copyright statement and requires that the module description contain text matching the following regular expression (lines 143–155 inpyang/plugins/ietf.py
):This is too strict and may lead to false warnings – especially the last paragraph may not be appropriate in some cases. For example, in draft-ietf-dnsop-iana-class-type-yang the YANG module itself isn't contained in the RFC but generated from an IANA registry, so a different wording is needed.
RFC 8407 only requires in section 3.1 that [the] module "description" statement MUST contain a reference to the latest approved IETF Trust Copyright statement …
I would therefore suggest to at least remove the last paragraph from the copyright statement check.