Qos values translation 46/50046/1
authorKonsta Pozdeev <konsta.pozdeev@hpe.com>
Sun, 25 Dec 2016 10:40:06 +0000 (12:40 +0200)
committerDavid Goldberg <gdavid@hpe.com>
Thu, 5 Jan 2017 08:43:30 +0000 (10:43 +0200)
Change-Id: I76a5864ba931c012af7e177a860c5239d1891622
Signed-off-by: Konsta Pozdeev <konsta.pozdeev@hpe.com>
netvirt/src/main/java/org/opendaylight/unimgr/mef/netvirt/UniQosManager.java

index 8520004a77c16cc9dcc3fc505e4535c031bdda7f..511aeed51f42017bb4d448306f02658ef506ea1b 100644 (file)
@@ -90,10 +90,10 @@ public class UniQosManager {
                 Log.trace("Can't read bw profile {} for Uni {}", bwProfile, uniId);
                 return;
             }
-            // Kbytes per second
+            // Kb per second
             maxKbps = bwFlowOp.get().getCir().getValue();
             // burst in bytes, ovs requires in Kb
-            maxBurstKb = bwFlowOp.get().getCbs().getValue() / 1000;
+            maxBurstKb = bwFlowOp.get().getCbs().getValue() * 8 / 1024;
             Log.info("Record rate limits for Uni {} Profile {}", uniId, bwProfile);
         }
         mapUniPortBandwidthLimits(uniId, portId, maxKbps, maxBurstKb);