#NEWLINE# def loss( self , interface , percent , correlation = None ) : #NEWLINE# #INDENT# self . clear ( interface ) #NEWLINE# cmd = 'tc qdisc add dev {0} root netem loss {1:2.1f}% {2}' . format ( interface , self , ( '{0:2.1f}%' . format ( correlation ) if correlation else '' ) ) #NEWLINE# return self . _perform ( cmd )