#NEWLINE# def reorder( self , interface , percent , delay = 10 , correlation = 0 ) : #NEWLINE# #INDENT# self . clear ( interface ) #NEWLINE# cmd = 'tc qdisc add dev {0} root netem delay {1:3.0d}ms reorder {2} {3}' . format ( interface , delay , '{0:2.1f}%' . format ( float ( percent ) ) , ( '{0:2.1f}%' . format ( correlation ) if correlation else '' ) ) #NEWLINE# return self . _perform ( cmd )