Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Revert "Disable CRC checking at runtime"
[csit.git]
/
resources
/
libraries
/
python
/
Policer.py
diff --git
a/resources/libraries/python/Policer.py
b/resources/libraries/python/Policer.py
index
c722129
..
55429e7
100644
(file)
--- 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.
"""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.
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."""
def policer_set_rate_type_kbps(self):
"""Set policer rate type to kbps."""