summaryrefslogtreecommitdiffstats
path: root/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
diff options
context:
space:
mode:
authoritraviv <itraviv@cisco.com>2016-08-11 16:59:29 +0300
committeritraviv <itraviv@cisco.com>2016-08-11 16:59:29 +0300
commit72171290152897fac1a149fe4f9d1cbf0ae914c4 (patch)
tree264720682c55f2dbae2e38128ebc6ce7ae22ecca /scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
parent7aa248272fb7687f6cfd84a1414ddee4f0a47369 (diff)
1)removed unnecessary files from repository
2)fixed bug in checking update of data-base
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py')
-rwxr-xr-xscripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py b/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
index 6fe8dcc7..638d35f2 100755
--- a/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
+++ b/scripts/automation/trex_control_plane/stl/services/scapy_server/scapy_service.py
@@ -223,8 +223,8 @@ class Scapy_service:
current_db_md5 = self.get_md5(db)
current_field_md5 = self.get_md5(fields)
res = []
- if field_md5 == current_field_md5:
- if db_md5 == current_db_md5:
+ if (field_md5.decode("base64") == current_field_md5.decode("base64")):
+ if (db_md5.decode("base64") == current_db_md5.decode("base64")):
return True
else:
raise ScapyException("Protocol DB is not up to date")