Open abierman opened 4 years ago
Agree must clarify this detail. Revision dates do not need to be unique.
Since openconfig already does this, and YANG 2.0 will have semver, this should be OK. Just add warning that a YANG 1.1 filename cannot distinguish between different module contents in this case.
Must do: complexity: low, bc: high, importance: medium
The RFC does not mention any error condition if multiple revision-stmts have the same revision-date value. This occurs in openconfig-inet-types.yang and other real modules.
YANG has no way to distinguish between the various revisions that are all published on the same date.
It should be an error if multiple revision-stmts have the same revision date. yangdump-pro flags this as a warning. No other compilers complain about this issue (AFAIK)