X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_mdata.py;h=21e2f1f8e42f7b52e034219354d0039e63f7b9cd;hb=853cc9f2ad3ee52cbdd891fb09d51c25678baed0;hp=8f7b3d2a837b2f64c7a8afd6a8c566bea0249d5c;hpb=6facf8cd4516a18d7a6f5cc16557fc6cbc29ce20;p=vpp.git diff --git a/test/test_mdata.py b/test/test_mdata.py index 8f7b3d2a837..21e2f1f8e42 100644 --- a/test/test_mdata.py +++ b/test/test_mdata.py @@ -1,4 +1,5 @@ -from framework import VppTestCase, VppTestRunner +from asfframework import VppTestRunner +from framework import VppTestCase import unittest from config import config from scapy.layers.l2 import Ether @@ -42,7 +43,7 @@ class TestMdataCli(VppTestCase): p = ( Ether(dst=src_if.local_mac, src=src_if.remote_mac) / IP(src=src_if.remote_ip4, dst=dst_if.remote_ip4) - / UDP(sport=randint(1000, 2000), dport=5678) + / UDP(sport=randint(49152, 65535), dport=5678) / Raw(payload) ) @@ -57,6 +58,7 @@ class TestMdataCli(VppTestCase): try: ip = packet[IP] udp = packet[UDP] + self.logger.debug(f"Converting payload to info for {packet[Raw]}") # convert the payload to packet info object payload_info = self.payload_to_info(packet[Raw]) # make sure the indexes match