Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
fib: fix flags updates when adding routes with a udp encap path
[vpp.git]
/
test
/
test_udp.py
diff --git
a/test/test_udp.py
b/test/test_udp.py
index
3281c0d
..
df9a0af
100644
(file)
--- a/
test/test_udp.py
+++ b/
test/test_udp.py
@@
-141,11
+141,11
@@
class TestUdpEncap(VppTestCase):
# Routes via each UDP encap object - all combinations of v4 and v6.
#
route_4o4 = VppIpRoute(
# Routes via each UDP encap object - all combinations of v4 and v6.
#
route_4o4 = VppIpRoute(
- self, "1.1.0.1",
32
,
+ self, "1.1.0.1",
24
,
[VppRoutePath("0.0.0.0",
0xFFFFFFFF,
type=FibPathType.FIB_PATH_TYPE_UDP_ENCAP,
[VppRoutePath("0.0.0.0",
0xFFFFFFFF,
type=FibPathType.FIB_PATH_TYPE_UDP_ENCAP,
- next_hop_id=udp_encap_0.id)])
+ next_hop_id=udp_encap_0.id)]
, table_id=1
)
route_4o6 = VppIpRoute(
self, "1.1.2.1", 32,
[VppRoutePath("0.0.0.0",
route_4o6 = VppIpRoute(
self, "1.1.2.1", 32,
[VppRoutePath("0.0.0.0",
@@
-172,12
+172,12
@@
class TestUdpEncap(VppTestCase):
#
# 4o4 encap
#
#
# 4o4 encap
#
- p_4o4 = (Ether(src=self.pg
0
.remote_mac,
- dst=self.pg
0
.local_mac) /
+ p_4o4 = (Ether(src=self.pg
1
.remote_mac,
+ dst=self.pg
1
.local_mac) /
IP(src="2.2.2.2", dst="1.1.0.1") /
UDP(sport=1234, dport=1234) /
Raw(b'\xa5' * 100))
IP(src="2.2.2.2", dst="1.1.0.1") /
UDP(sport=1234, dport=1234) /
Raw(b'\xa5' * 100))
- rx = self.send_and_expect(self.pg
0
, p_4o4*NUM_PKTS, self.pg0)
+ rx = self.send_and_expect(self.pg
1
, p_4o4*NUM_PKTS, self.pg0)
for p in rx:
self.validate_outer4(p, udp_encap_0)
p = IP(p["UDP"].payload.load)
for p in rx:
self.validate_outer4(p, udp_encap_0)
p = IP(p["UDP"].payload.load)