Using Direct meter
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
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.
Hello,
I did me.cir =
Units per second: https://github.com/p4lang/p4runtime/blob/v1.2.0/proto/p4/v1/p4runtime.proto#L346