Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an option to sort certain statements to match canonical order #4

Open
Hubro opened this issue Jun 4, 2023 · 0 comments
Open

Add an option to sort certain statements to match canonical order #4

Hubro opened this issue Jun 4, 2023 · 0 comments

Comments

@Hubro
Copy link
Owner

Hubro commented Jun 4, 2023

One of the tedious parts of writing IETF-linted YANG is to keep statements in the correct canonical order.

Add an option (-c/--canonical-order) that will sort certain statements into canonical order.

To begin with, this should only sort statements inside leaf/leaf-list blocks, but it will probably be expanded to sort certain statements inside all blocks, such as must and when.

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

No branches or pull requests

1 participant