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

Trying to understand the use of models in subscriptions #530

Open
Sparc0 opened this issue Oct 11, 2024 · 1 comment
Open

Trying to understand the use of models in subscriptions #530

Sparc0 opened this issue Oct 11, 2024 · 1 comment

Comments

@Sparc0
Copy link
Contributor

Sparc0 commented Oct 11, 2024

Trying to understand what the benefits is of adding models under a subscription.
I have subs one using models and one is not and the result seems to be the same.
I read this and made it little what they can be used for https://openconfig.net/docs/gnmi/gnmi-specification/#26-schema-definition-models

  • Whats the correct way of using them?
  • Is there any performance benefits when using them?

I have tried to look into e.g https://openconfig.net/projects/models/schemadocs/jstree/openconfig-interfaces.html#
And the path i get there for counters is not working.
/oc-if:interfaces/oc-if:interface/oc-if:state/oc-if:counters Not working
/interfaces/interface/state/counters Working

One of many gnmic examples

interface_state_with:                                        
  paths:                                                 
    - "openconfig-interfaces:/interfaces"                
  models:                                                
    - "openconfig-interfaces"                            
  mode: stream                                           
  stream-mode: sample                                    
  sample-interval: 15s                                   
  heartbeat-interval: 15s                                
  encoding: proto                                        
interface_state_without:                                        
  paths:                                                 
    - "/interfaces"                                      
  mode: stream                                           
  stream-mode: sample                                    
  sample-interval: 15s                                        
  heartbeat-interval: 15s                                
  encoding: proto                                        
@karimra
Copy link
Collaborator

karimra commented Oct 26, 2024

This question is probably better asked in the reference repo.

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

2 participants