Skip to content
Permalink
Browse files

Don't pass 'loss 0' to tc as it will cause an error on newer versions

Observed on Ubuntu 18.04.
  • Loading branch information...
stephanreiter committed Jun 8, 2019
1 parent e203808 commit 46242acdd415b83826b6d231390cc368946b50bd
Showing with 1 addition and 1 deletion.
  1. +1 −1 mininet/link.py
@@ -295,7 +295,7 @@ def delayCmds( parent, delay=None, jitter=None,
netemargs = '%s%s%s%s' % (
'delay %s ' % delay if delay is not None else '',
'%s ' % jitter if jitter is not None else '',
'loss %.5f ' % loss if loss is not None else '',
'loss %.5f ' % loss if (loss is not None and loss > 0) else '',
'limit %d' % max_queue_size if max_queue_size is not None
else '' )
if netemargs:

0 comments on commit 46242ac

Please sign in to comment.
You can’t perform that action at this time.