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

Convention for ITU-T Recommendations #26

Closed
1 task
italobusi opened this issue Jun 10, 2021 · 3 comments
Closed
1 task

Convention for ITU-T Recommendations #26

italobusi opened this issue Jun 10, 2021 · 3 comments
Assignees
Labels

Comments

@italobusi
Copy link
Member

italobusi commented Jun 10, 2021

I am not sure if there is any convention in YANG modeling to use or not use "." in variable names. For example, in iana-if-type.yang it uses "identity ieee8023adLag" as opposed to "802.3". Maybe just removing ".", to make it like G652, G653.

Originally posted by @agva123 in #25 (comment)

  • To be discussed during IETF-111 CCAMP WG presentation
@italobusi
Copy link
Member Author

According to https://datatracker.ietf.org/doc/html/rfc8407#section-4.3.1:

Identifiers SHOULD follow a consistent naming pattern throughout the
module. Only lowercase letters, numbers, and dashes SHOULD be used
in identifier names. Uppercase characters, the period character, and
the underscore character MAY be used if the identifier represents a
well-known value that uses these characters. YANG does not permit
any other characters in YANG identifiers.

I think that RFC8407 allows using the . for ITU-T Recommendation numbers since it is a well-know value

@sergiobelotti
Copy link
Contributor

sergiobelotti commented Apr 11, 2023

April 11 weekly call:
Aihua: If it is not prohibit the usage of "." , we can use the "." also in YANG statements.

@sergiobelotti
Copy link
Contributor

the last decision is that "If it is not prohibit the usage of "." , we can use the "." also in YANG statements.
RFC8407 allows using the "." for ITU-T Recommendation numbers since it is a well-know value (see above #26 (comment))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants