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

Model scoping, reuse and the design implications #1193

Open
earies opened this issue Sep 28, 2024 · 0 comments
Open

Model scoping, reuse and the design implications #1193

earies opened this issue Sep 28, 2024 · 0 comments

Comments

@earies
Copy link
Contributor

earies commented Sep 28, 2024

The public repository of OpenConfig is primarily focused on "network element" device models (router/switch) with a few exceptions (wifi, manifests, ate). In addition, there are a number of external projects (both in OpenConfig and outside) that have expressed interest to leverage and/or extend the model-sets for varying use-cases.

As discovered in the following CI check: #1183 (comment), the scoping. importing and reuse of YANG groupings can pose issues and limitations to the forward progress of expressing desired intent. This has been seen in prior PRs as well often introducing the circular dependency dilemma.

I'd like to raise this issue to address awareness and initiate discussion (in upcoming operator/community meetings) towards the following:

  • When a model should or should not exist within the public repository (and incorporated into the entire collective CI pipeline)
  • When is a domain of intended use best suited for separate repository (cross leveraging from outside, potentially not following OC style/design, etc...)
  • Scoping of device vs. network/controller viewpoints and the impacts towards instance-identifiers
  • Impacts on reuse when anchor points are reimplemented/redefined
  • Impacts on restrictions necessary to accommodate unrelated domains/intent (Falling back to the inability to express per the modeling language)

As model sets and scopes grow, the issues will exacerbate and the less that one can express within the available YANG language. This results into encoding desired behaviors into description statements or separate specification documents -> special handling -> greater likelyhood of interpretation and implementation differences.

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

No branches or pull requests

1 participant