diff options
author | Vratko Polak <vrpolak@cisco.com> | 2018-07-19 19:14:26 +0200 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2018-07-24 08:41:31 +0000 |
commit | 0759425f08bd7b8a003f4fb2ab9b443216517d8f (patch) | |
tree | 1bed5f044a949dafc1a7114a2b27f17c98b4a8e7 /resources/libraries/python/Policer.py | |
parent | f3c6b66f314d55072861d64b8c01451b415dbef9 (diff) |
CSIT-1097: Migrate ip4 to NDRPDR and edit MRR
Change-Id: I9e3b2973c14f818247658a2ae34456c9fc2bae4e
Signed-off-by: Vratko Polak <vrpolak@cisco.com>
(cherry picked from commit 74771ecb4e2742efd3ab40bb8dd9cf9ac1bb40c8)
Diffstat (limited to 'resources/libraries/python/Policer.py')
-rw-r--r-- | resources/libraries/python/Policer.py | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/resources/libraries/python/Policer.py b/resources/libraries/python/Policer.py index c72212914b..55429e7cb3 100644 --- a/resources/libraries/python/Policer.py +++ b/resources/libraries/python/Policer.py @@ -294,17 +294,23 @@ class Policer(object): """Set policer CB. :param cb: Committed Burst size. - :type cb: int + :type cb: int or str """ - self._cb = cb + if cb == "IMIX_v4_1": + self._cb = 1518 + else: + self._cb = cb def policer_set_eb(self, eb): """Set policer EB. :param eb: Excess Burst size. - :type eb: int + :type eb: int or str """ - self._eb = eb + if eb == "IMIX_v4_1": + self._eb = 1518 + else: + self._eb = eb def policer_set_rate_type_kbps(self): """Set policer rate type to kbps.""" |