2.23. test_gtpu module¶
-
class
test_gtpu.
TestGtpu
(*args)¶ Bases:
template_bd.BridgeDomain
,framework.VppTestCase
GTPU Test Case
-
classmethod
add_del_mcast_tunnels_load
(is_add)¶ add or del tunnels to test gtpu stability
add or del tunnels sharing the same mcast dst to test gtpu ref_count mechanism
-
classmethod
add_mcast_tunnels_load
()¶
-
check_encapsulation
(pkt, vni, local_only=False, mcast_pkt=False)¶
-
classmethod
create_gtpu_flood_test_bd
(teid, n_ucast_tunnels)¶
-
decapsulate
(pkt)¶ Decapsulate the original payload frame by removing GTPU header
-
classmethod
del_mcast_tunnels_load
()¶
-
encap_mcast
(pkt, src_ip, src_mac, vni)¶ Encapsulate the original payload frame by adding GTPU header with its UDP, IP and Ethernet fields
-
encapsulate
(pkt, vni)¶ Encapsulate the original payload frame by adding GTPU header with its UDP, IP and Ethernet fields
-
classmethod
setUpClass
()¶
-
tearDown
()¶
-
test_encap
()¶ Encapsulation test Send frames from pg1 Verify receipt of encapsulated frames on pg0
-
test_mcast_flood
()¶ Multicast flood test Send frames from pg2 Verify receipt of encapsulated frames on pg0
-
test_ucast_flood
()¶ Unicast flood test Send frames from pg3 Verify receipt of encapsulated frames on pg0
-
classmethod