diff options
author | Dave Wallace <dwallacelf@gmail.com> | 2023-10-31 23:20:47 -0400 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2023-10-31 23:20:47 -0400 |
commit | 6e66ea75a0ec9ce414e2563c6286a14ad3a58c01 (patch) | |
tree | c013a73fd3b65201ba8f178ef3ec7777703a6993 /test | |
parent | e75176a257bae8753c334f25fe09aa790cf4bf48 (diff) |
tests: fix UDP port range for mdata and bufmon
- Use of well known UDP port numbers causes random
failure of mdata and bufmon tests
Type: test
Change-Id: I21a01c54e5f166aea101d3caace85b53f3f7285d
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_bufmon.py | 2 | ||||
-rw-r--r-- | test/test_mdata.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/test_bufmon.py b/test/test_bufmon.py index baa93740ac8..6d7f2f6da65 100644 --- a/test/test_bufmon.py +++ b/test/test_bufmon.py @@ -41,7 +41,7 @@ class TestBufmon(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) ) info.data = p.copy() diff --git a/test/test_mdata.py b/test/test_mdata.py index 8f7b3d2a837..ce2ebac48af 100644 --- a/test/test_mdata.py +++ b/test/test_mdata.py @@ -42,7 +42,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) ) |