Adding pseudo wire tests
Change-Id: If72e67e7bf1fa81b370c96696196fc575a453557
diff --git a/src/python/oftest/dataplane.py b/src/python/oftest/dataplane.py
index 97b47a3..232aadf 100644
--- a/src/python/oftest/dataplane.py
+++ b/src/python/oftest/dataplane.py
@@ -64,10 +64,10 @@
#some nic card have capature problem, will have more bytes capatured.
if pkt.find(exp_pkt) >=0:
return True
- else:
+ else:
if self.config["dump_packet"]:
- self.logger.debug("rx pkt ->"+(":".join("{:02x}".format(ord(c)) for c in pkt)))
- self.logger.debug("expect pkt->"+(":".join("{:02x}".format(ord(c)) for c in exp_pkt)))
+ self.logger.debug("rx pkt ->"+(" ".join("{:02x}".format(ord(c)) for c in pkt)))
+ self.logger.debug("expect pkt->"+(" ".join("{:02x}".format(ord(c)) for c in exp_pkt)))
return False
@@ -194,17 +194,17 @@
if config is None:
self.config = {}
else:
- self.config = config;
+ self.config = config;
############################################################
#
# The platform/config can provide a custom DataPlanePort class
# here if you have a custom implementation with different
- # behavior.
+ # behavior.
#
# Set config.dataplane.portclass = MyDataPlanePortClass
# where MyDataPlanePortClass has the same interface as the class
- # DataPlanePort defined here.
+ # DataPlanePort defined here.
#
if "dataplane" in self.config and "portclass" in self.config["dataplane"]:
self.dppclass = self.config["dataplane"]["portclass"]