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>
This commit is contained in:
@ -41,7 +41,7 @@ class TestBufmon(VppTestCase):
|
|||||||
p = (
|
p = (
|
||||||
Ether(dst=src_if.local_mac, src=src_if.remote_mac)
|
Ether(dst=src_if.local_mac, src=src_if.remote_mac)
|
||||||
/ IP(src=src_if.remote_ip4, dst=dst_if.remote_ip4)
|
/ 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)
|
/ Raw(payload)
|
||||||
)
|
)
|
||||||
info.data = p.copy()
|
info.data = p.copy()
|
||||||
|
@ -42,7 +42,7 @@ class TestMdataCli(VppTestCase):
|
|||||||
p = (
|
p = (
|
||||||
Ether(dst=src_if.local_mac, src=src_if.remote_mac)
|
Ether(dst=src_if.local_mac, src=src_if.remote_mac)
|
||||||
/ IP(src=src_if.remote_ip4, dst=dst_if.remote_ip4)
|
/ 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)
|
/ Raw(payload)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user