X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=resources%2Flibraries%2Fpython%2FPolicer.py;h=55429e7cb35c40f20b1b619638429e83e1a4b7ed;hp=c72212914b0b908cc8fc1b2532d12bf475daa46c;hb=74771ecb4e2742efd3ab40bb8dd9cf9ac1bb40c8;hpb=f7ad4e08157eecc91d4be2a05c891f06bca9f966 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."""