-
Notifications
You must be signed in to change notification settings - Fork 187
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
how to fetch counters from the switch? #99
Comments
P4 counters can be read using P4Runtime, not gNMI. Unfortunately in ONOS we don't have an API for reading indirect counters (yet). ONOS can read direct counters when periodically reading table entries, and displaythem as part of flow rule stats ( I'm assuming you are dealing with indirect ones, I see two options:
|
@ccascone Thanks for the response and the clarifying the problem I'm debugging on. To elaborate more, I did the declaration of the counters as below:
The above declaration suggest these are direct counters. (I'm not sure about it as I have just started learning about the P4 and going through basic understandings).
Apologies for the next questions but I'm not exactly getting what is the
With the reference from the issue, Can you please revert me what is wrong in this from below list ?
|
I've added certain counters to check packets in-out stats.
srv6_transit_table_counter
But I'm not able to fetch them using that
util/gnmi-cli
command.Can someone please let me know how can I fetch the newly added counters from switch,
util/gnmi-cli --grpc-addr localhost:50001 get /interfaces
The text was updated successfully, but these errors were encountered: