From 384ee173d635beb5f167d9862cc405f5375ff841 Mon Sep 17 00:00:00 2001 From: Tal Itschakian Date: Tue, 26 Aug 2025 14:18:03 +0300 Subject: [PATCH] Add support for meters eburst Signed-off-by: Tal Itschakian --- p4runtime_sh/shell.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/p4runtime_sh/shell.py b/p4runtime_sh/shell.py index 139cb0b..e791743 100644 --- a/p4runtime_sh/shell.py +++ b/p4runtime_sh/shell.py @@ -1249,7 +1249,7 @@ def get_count(cls, instance, counter_name, counter_type, name): class _MeterConfig: @staticmethod def attrs(): - return ["cir", "cburst", "pir", "pburst"] + return ["cir", "cburst", "pir", "pburst", "eburst"] def __init__(self, meter_name, meter_type): self._meter_name = meter_name @@ -1430,7 +1430,7 @@ def __init__(self, table_name=None): """ if self._direct_meter is not None: self.__doc__ += """ -To access the meter config, use .meter_config.. +To access the meter config, use .meter_config.. To unset it, use .meter_config = None or .clear_meter_config(). """ if ap is None: @@ -2090,6 +2090,7 @@ def __init__(self, meter_name=None): .cburst .pir .pburst +.eburst To read from the meter, use .read To write to the meter, use .modify @@ -2160,6 +2161,7 @@ def __init__(self, direct_meter_name=None): .cburst .pir .pburst +.eburst To read from the meter, use .read To write to the meter, use .modify