summaryrefslogtreecommitdiffstats
path: root/qa/tasks/netem.py
diff options
context:
space:
mode:
Diffstat (limited to 'qa/tasks/netem.py')
-rw-r--r--qa/tasks/netem.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/qa/tasks/netem.py b/qa/tasks/netem.py
index 95018150da9..4fa08bbc0a0 100644
--- a/qa/tasks/netem.py
+++ b/qa/tasks/netem.py
@@ -6,10 +6,7 @@ Reference:https://wiki.linuxfoundation.org/networking/netem.
import logging
import contextlib
-from teuthology import misc as teuthology
from cStringIO import StringIO
-from teuthology.orchestra import run
-from teuthology import contextutil
from paramiko import SSHException
import socket
import time
@@ -168,7 +165,7 @@ class Toggle:
try:
self.packet_drop()
log.info('link down')
- except SSHException as e:
+ except SSHException:
log.debug('Failed to run command')
self.stop_event.wait(timeout=self.interval)
@@ -176,7 +173,7 @@ class Toggle:
try:
delete_dev(self.remote, self.interface)
log.info('link up')
- except SSHException as e:
+ except SSHException:
log.debug('Failed to run command')
def begin(self, gname):