-
Notifications
You must be signed in to change notification settings - Fork 656
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
Update openconfig-gnsi-acctz.yang #1195
Update openconfig-gnsi-acctz.yang #1195
Conversation
@mihirpitale-googler to review |
/gcbrun |
No major YANG version changes in commit ec04408 |
@morrowc for review |
@haussli for review. |
Related to change made in acctz at openconfig/gnsi#175 |
@adityasingh-anet to fix the linter errors, we need a "state" container added on top of the counters container. For example: "/system/grpc-servers/grpc-server/acctz/state/counters/history-istruncated" |
1f28111
to
90c82ed
Compare
To address the linter errors I have added a "state" container in the client counters path. My original review comment has been updated with the new pyang output |
/gcbrun |
Set last call to Oct 22,2024 |
90c82ed
to
0c3094f
Compare
/gcbrun |
Comments on line 213 & 219 seem incorrect; seems unrelated to certz. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- The non-breaking label seems incorrect. it is breaking, and more in one way
- removal of existing leafs
- relocation of other leafs
- i'd suggest to deprecate the leaves instead of removing them
It is a breaking change as written but in a v0.x model where we expect breaking changes until the model is "mature". I will label this as breaking. Per yang definition, by deprecating leaves we are asserting that a NOS should support both the old, deprecated nodes and any new nodes meant to replace them simultaneously. The deprecation is merely an informational notice that the node will be removed in the future. OC's specification for yang model versioning has an implication for v0.x models. OC generally adopts version 1.x and above once there are working implementations of this model. In practice, we have many v0.x models which are implemented yet are considered immature. Which NOS supports the v0.2.0 model today? Do you want to see this incremented to v1.x or stay at v0.x? In full disclosure, we are not yet consuming the leaves which are undergoing a breaking change here (at least not in any code). I believe our intended consumption of this model will be to use the very latest revision and not with the older leaves. @morrowc for any additional comments on our usage. There is no right or wrong answer here. It is just some consensus on whether we should move from v0.x to v1.x. If there is no consensus, I'll just leave this at v0.3.0 for now. |
Thanks for catching this @haussli . @adityasingh-anet I added a suggested edit to the description for you to consider. |
I don't know, but do we a confirmation that there are no existing implementations? :-) We don't have an implementation, so i'm not too concerned about this particular change. A similar precedent happened in #1020 , where a leaf was removed, and we had a working implementation. This caused some issues down the line when we needed to upgrade to a new OC release. |
583613e
to
d16966b
Compare
I believe the comment was originally added to indicate that acctz is augmenting the same list that certz was already using. I agree that that description might be confusing so I've changed the comments to be more specific to acctz and not reference a different model. |
/gcbrun |
/gcbrun |
2 similar comments
/gcbrun |
/gcbrun |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please restructure the /system/aaa/acctz tree to be compliant with OC style for lists.
Please make the /system/aaa/acctz paths follow the OC style guide for lists. I'd suggest the following path structure:
/system/aaa/acctz/source-records/source-record/state/service
/system/aaa/acctz/source-records/source-record/state/type
/system/aaa/acctz/source-records/source-record/state/counters/records
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Marking my review as request changes
* Delete idle-timeouts and counters-last-cleared leaves * Split source-counters and client counters to be under separate augments
cd818b2
to
3cee064
Compare
I have restructured /system/aaa/accounting/acctz: Here is the new pyang (also updated in original message):
|
/gcbrun |
Change Scope
https://github.com/openconfig/gnsi/blob/main/acctz/gnsi-acctz.yang has received updates that are not in openconfig/public. In particular, the
idle-timeouts
andcounters-last-cleared
leaves have been deleted. This PR will bring those changes into openconfig/publicsource-counters should not be under the
grpc-server
list since they cannot be associated to a specific grpc-server. Instead create another augment so source-counters are on a different path than client-countersAddress typo in the
source-records
list descriptionThis change is not backwards compatible
pyang output:
Platform Implementations
None