Skip to content

Conversation

@sallylsy
Copy link
Contributor

Change Scope

  • Update the key of pathz from name to xpath
  • This change is not backwards compatible.

Current Yang tree

module: openconfig-system
  +--rw system
     +--rw oc-sys-grpc:grpc-servers
     |  +--rw oc-sys-grpc:grpc-server* [name]
     |     +--ro oc-gnsi-pathz:gnmi-pathz-policy-counters
     |        +--ro oc-gnsi-pathz:paths
     |           +--ro oc-gnsi-pathz:path* [name]
     |              +--ro oc-gnsi-pathz:name    -> ../state/name
     |              +--ro oc-gnsi-pathz:state
     |                 +--ro oc-gnsi-pathz:name?    string
     |                 +--ro oc-gnsi-pathz:reads
     |                 |  +--ro oc-gnsi-pathz:access-rejects?       oc-yang:counter64
     |                 |  +--ro oc-gnsi-pathz:last-access-reject?   oc-types:timeticks64
     |                 |  +--ro oc-gnsi-pathz:access-accepts?       oc-yang:counter64
     |                 |  +--ro oc-gnsi-pathz:last-access-accept?   oc-types:timeticks64
     |                 +--ro oc-gnsi-pathz:writes
     |                    +--ro oc-gnsi-pathz:access-rejects?       oc-yang:counter64
     |                    +--ro oc-gnsi-pathz:last-access-reject?   oc-types:timeticks64
     |                    +--ro oc-gnsi-pathz:access-accepts?       oc-yang:counter64
     |                    +--ro oc-gnsi-pathz:last-access-accept?   oc-types:timeticks64

Yang tree for this PR

module: openconfig-system
  +--rw system
     +--rw oc-sys-grpc:grpc-servers
     |  +--rw oc-sys-grpc:grpc-server* [name]
     |     +--ro oc-gnsi-pathz:gnmi-pathz-policy-counters
     |        +--ro oc-gnsi-pathz:paths
     |           +--ro oc-gnsi-pathz:path* [xpath]
     |              +--ro oc-gnsi-pathz:xpath    -> ../state/xpath
     |              +--ro oc-gnsi-pathz:state
     |                 +--ro oc-gnsi-pathz:xpath?    string
     |                 +--ro oc-gnsi-pathz:reads
     |                 |  +--ro oc-gnsi-pathz:access-rejects?       oc-yang:counter64
     |                 |  +--ro oc-gnsi-pathz:last-access-reject?   oc-types:timeticks64
     |                 |  +--ro oc-gnsi-pathz:access-accepts?       oc-yang:counter64
     |                 |  +--ro oc-gnsi-pathz:last-access-accept?   oc-types:timeticks64
     |                 +--ro oc-gnsi-pathz:writes
     |                    +--ro oc-gnsi-pathz:access-rejects?       oc-yang:counter64
     |                    +--ro oc-gnsi-pathz:last-access-reject?   oc-types:timeticks64
     |                    +--ro oc-gnsi-pathz:access-accepts?       oc-yang:counter64
     |                    +--ro oc-gnsi-pathz:last-access-accept?   oc-types:timeticks64

@sallylsy sallylsy requested a review from a team as a code owner May 22, 2025 23:15
@robshakir
Copy link
Member

What is the motivation for this change please? Ideally, we're not making backwards-incompatible changes for aesthetic reasons.

@sallylsy
Copy link
Contributor Author

We want some help from OC team to evaluate the risk on changing the key name.

@robshakir
Copy link
Member

ACK -- the risk is that we create a new version of the schema which is incompatible with the same field names, so we now need to flag this.

I know there are some updates in process to this model -- see #1282 -- which I believe are also backwards incompatible.

Could you discuss with @marcushines whether this change could be incorporated there?

@earies
Copy link
Contributor

earies commented May 23, 2025

ACK -- the risk is that we create a new version of the schema which is incompatible with the same field names, so we now need to flag this.

I know there are some updates in process to this model -- see #1282 -- which I believe are also backwards incompatible.

Could you discuss with @marcushines whether this change could be incorporated there?

Agreed - this PR is not necessary and conflicts with the refactoring discussed in #1282

This is no longer going to be a "path" anyways

@sallylsy
Copy link
Contributor Author

sallylsy commented Jun 4, 2025

Thanks for the answer. I will close this PR

@sallylsy sallylsy closed this Jun 4, 2025
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

Successfully merging this pull request may close these issues.

3 participants