Skip to content

Commit

Permalink
Match bw param behavior between wired and wireless topology files
Browse files Browse the repository at this point in the history
Fixes oversight and allows for decimal values to be used for link bw
parameter in wireless topologies.

Refs: #5337
Change-Id: Iffeee64a1aa8538c56208735b349b0b6205550f6
  • Loading branch information
awlane committed Nov 5, 2024
1 parent 1f07a83 commit 5158e5f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions minindn/wifi/minindnwifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ def processTopo(topoFile):
continue
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 in ['loss', 'bw']:
value = float(value)
params[key] = value

Expand Down

0 comments on commit 5158e5f

Please sign in to comment.