aboutsummaryrefslogtreecommitdiffstats
path: root/nfvbench/traffic_server.py
diff options
context:
space:
mode:
Diffstat (limited to 'nfvbench/traffic_server.py')
-rw-r--r--nfvbench/traffic_server.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/nfvbench/traffic_server.py b/nfvbench/traffic_server.py
index 05f20e5..b35e78b 100644
--- a/nfvbench/traffic_server.py
+++ b/nfvbench/traffic_server.py
@@ -12,11 +12,13 @@
# License for the specific language governing permissions and limitations
# under the License.
-from log import LOG
import os
import subprocess
import yaml
+from log import LOG
+
+
class TrafficServerException(Exception):
pass
@@ -29,7 +31,7 @@ class TRexTrafficServer(TrafficServer):
def __init__(self, trex_base_dir='/opt/trex'):
contents = os.listdir(trex_base_dir)
# only one version of TRex should be supported in container
- assert(len(contents) == 1)
+ assert len(contents) == 1
self.trex_dir = os.path.join(trex_base_dir, contents[0])
def run_server(self, traffic_profile, filename='/etc/trex_cfg.yaml'):