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

Using Direct meter #44

Open
Hoangttrieu opened this issue Aug 5, 2020 · 3 comments
Open

Using Direct meter #44

Hoangttrieu opened this issue Aug 5, 2020 · 3 comments

Comments

@Hoangttrieu
Copy link

Hello,
I found a tutorial for using meter in https://github.com/haoyuz/p4-tutorials/blob/master/examples/meter/.
In this tutorial, they use "meter_array_set_rates" to set the data rate for the flow. Now, I want to set the data rates by using p4runtime. Do P4runtime-shell supports to do this? Thanks you very much

@antoninbas
Copy link
Member

Yes.
For an indirect meter, try:

P4Runtime sh >>> me = meter_entry["<name of meter object>"]

P4Runtime sh >>> me?

You should be getting a help message about how to set rates.

@Hoangttrieu
Copy link
Author

Hello,
I did me.cir = to set the value. But I have another question about the unit. Do the rates in the P4runtime is units/microseconds?
Thanks in advance.

@antoninbas
Copy link
Member

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