Skip to content

Can't reset TCLink to zero loss and delay #881

@snizovtsev

Description

@snizovtsev

This optimization prevents zeroing loss or delay link parameters after non-zero period because "not 0 = True" in Python:

mininet/mininet/link.py

Lines 352 to 354 in e203808

if ( bw is None and not delay and not loss
and max_queue_size is None ):
return

It should be compared to None or running value instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions