Merge "py3: Fix ingress_bw_limit_for_dpdk_port() value conversion"

This commit is contained in:
Zuul 2018-05-16 10:08:42 +00:00 committed by Gerrit Code Review
commit e32dfd2627
1 changed files with 2 additions and 2 deletions

View File

@ -862,12 +862,12 @@ class OVSBridge(BaseOVS):
max_bw_in_bytes = other_config.get("cir")
if max_bw_in_bytes is not None:
max_kbps = common_utils.bits_to_kilobits(
common_utils.bytes_to_bits(int(max_bw_in_bytes)),
common_utils.bytes_to_bits(int(float(max_bw_in_bytes))),
common_constants.SI_BASE)
max_burst_in_bytes = other_config.get("cbs")
if max_burst_in_bytes is not None:
max_burst_kbit = common_utils.bits_to_kilobits(
common_utils.bytes_to_bits(int(max_burst_in_bytes)),
common_utils.bytes_to_bits(int(float(max_burst_in_bytes))),
common_constants.SI_BASE)
return max_kbps, max_burst_kbit