X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_srv6_as.py;h=1ff7906e5133860951a4df36cf40bb752f67ae0f;hb=eaea421e1fefedc47325f970475c5d48c899433c;hp=64ff957da4b19cb5f8a2ca63ef2a09b4887b2045;hpb=661f91fe0a6bd87040408d45d116b63c0811f4f9;p=vpp.git diff --git a/test/test_srv6_as.py b/test/test_srv6_as.py index 64ff957da4b..1ff7906e513 100755 --- a/test/test_srv6_as.py +++ b/test/test_srv6_as.py @@ -810,14 +810,14 @@ class TestSRv6(VppTestCase): # but packet[Raw] gives the complete payload # (incl L2 header) for the T.Encaps L2 case try: - payload_info = self.payload_to_info(str(packet[Raw])) + payload_info = self.payload_to_info(packet[Raw]) except: # remote L2 header from packet[Raw]: # take packet[Raw], convert it to an Ether layer # and then extract Raw from it payload_info = self.payload_to_info( - str(Ether(str(packet[Raw]))[Raw])) + Ether(str(packet[Raw]))[Raw]) return payload_info