Skip to content

Commit

Permalink
fix: do not convert jitter to int
Browse files Browse the repository at this point in the history
Mininet now requires it to be specified with time units, e.g. 10ms

Change-Id: Ic80d1a71120f77904b77ea4e34bc57a6e994b25c
  • Loading branch information
pulsejet authored and awlane committed Nov 11, 2024
1 parent 5158e5f commit e427d26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions minindn/minindn.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ def processTopo(topoFile):
for param in item[1].split(' '):
key = param.split('=')[0]
value = param.split('=')[1]
if key in ['jitter', 'max_queue_size']:
if key in ['max_queue_size']:
value = int(value)
if key == 'loss' or key == 'bw':
value = float(value)
Expand Down Expand Up @@ -313,7 +313,7 @@ def nfdcBatchProcessing(self, station, faces):

def setupFaces(self, faces_to_create=None):
""" Method to create unicast faces between connected nodes;
Returns dict- {node: (other node name, other node IP, other node's delay as int)}.
Returns dict- {node: (other node name, other node IP, other node's delay as int)}.
This is intended to pass to the NLSR helper via the faceDict param """
if not faces_to_create:
faces_to_create = self.faces_to_create
Expand Down
2 changes: 1 addition & 1 deletion minindn/wifi/minindnwifi.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def processTopo(topoFile):
continue
key = param.split('=')[0]
value = param.split('=')[1]
if key in ['jitter', 'max_queue_size']:
if key in ['max_queue_size']:
value = int(value)
if key in ['loss', 'bw']:
value = float(value)
Expand Down

0 comments on commit e427d26

Please sign in to comment.