Allow float value for bw parameter in topology for non-integer values in megabits.

Refs #5263

Change-Id: I1c58129a474b3ec7362419c3a76863079b648b57
This commit is contained in:
awlane authored and Alexander Lane committed 2023-07-24 22:55:28 +00:00
1 parent 2e7b584ab5
commit cb8c911f41
1 file changed
+2 -2
+2 -2
View File
@@ -195,9 +195,9 @@ class Minindn(object):
for param in item[1].split(' '):
key = param.split('=')[0]
value = param.split('=')[1]
if key in ['bw', 'jitter', 'max_queue_size']:
if key in ['jitter', 'max_queue_size']:
value = int(value)
if key == 'loss':
if key == 'loss' or key == 'bw':
value = float(value)
params[key] = value