Skip to content

fix warning message for YANG module revision ordering - #2547

Merged
michalvasko merged 1 commit into
CESNET:develfrom
jktjkt:bug/yang-revision-order
Aug 6, 2026
Merged

fix warning message for YANG module revision ordering#2547
michalvasko merged 1 commit into
CESNET:develfrom
jktjkt:bug/yang-revision-order

Conversation

@jktjkt

@jktjkt jktjkt commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

The standard says that:

[...] a new [revision] SHOULD be added in front of the revisions
sequence so that all revisions are in reverse chronological order

The actual error message was misleading, saying that an older revision was found after a new revision. That is actually a correct order. The check was correct, but the error message should have said that the older revision was found before a newer one.

We actually "fixed" our YANG models based on this diagnostic message, only to revert that later on.

The [standard](https://datatracker.ietf.org/doc/html/rfc7950#section-7.1.9)
says that:

> [...] a new [revision] SHOULD be added in front of the revisions
> sequence so that all revisions are in reverse chronological order

The actual error message was misleading, saying that an older revision
was found after a new revision. That is actually a correct order. The
check was correct, but the error message should have said that the older
revision was found *before* a newer one.

We actually "fixed" our YANG models based on this diagnostic message,
only to revert that later on.
jktjkt added a commit to CESNET/rousette that referenced this pull request Aug 5, 2026
Bug: CESNET/libyang#2547
Change-Id: Ie96091b06b8eaa598208b904e016fe13aafa9cce
@michalvasko

Copy link
Copy Markdown
Member

True, sorry about that.

@michalvasko
michalvasko merged commit 2f7d04e into CESNET:devel Aug 6, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants