yet another limitation of 8 ports
authorYaroslav Brustinov <[email protected]>
Mon, 29 Feb 2016 11:57:59 +0000 (13:57 +0200)
committerYaroslav Brustinov <[email protected]>
Mon, 29 Feb 2016 11:57:59 +0000 (13:57 +0200)
scripts/automation/trex_control_plane/stl/trex_stl_lib/trex_stl_client.py

index 3cfef08..5056685 100644 (file)
@@ -163,7 +163,7 @@ class AsyncEventHandler(object):
         # filter the values per port and general
         for key, value in dump_data.iteritems():
             # match a pattern of ports
-            m = re.search('(.*)\-([0-8])', key)
+            m = re.search('(.*)\-(\d+)', key)
             if m:
                 port_id = int(m.group(2))
                 field_name = m.group(1)