blob: d05a1ff89e847ad66d195c589fa9827fe1da243c [file] [log] [blame]
Renato Botelho do Coutoead1e532019-10-31 13:31:07 -05001#!/usr/bin/env python3
Hongjun Nief486b12017-04-12 19:21:16 +08002
Paul Vinciguerra2f156312020-05-02 22:34:40 -04003from util import ip4_range
Hongjun Nief486b12017-04-12 19:21:16 +08004import unittest
Dave Wallace8800f732023-08-31 00:47:44 -04005from framework import VppTestCase
6from asfframework import VppTestRunner, tag_fixme_vpp_workers
Hongjun Nief486b12017-04-12 19:21:16 +08007from template_bd import BridgeDomain
Dmitry Valter34fa0ce2024-03-11 10:38:46 +00008from config import config
Hongjun Nief486b12017-04-12 19:21:16 +08009
snaramre5d4b8912019-12-13 23:39:35 +000010from scapy.layers.l2 import Ether
Hongjun Nief486b12017-04-12 19:21:16 +080011from scapy.layers.inet import IP, UDP
Jakub Grajciarebae4192019-05-23 13:01:41 +020012from scapy.layers.inet6 import IPv6
Hongjun Nief486b12017-04-12 19:21:16 +080013from scapy.contrib.gtp import GTP_U_Header
Paul Vinciguerra2f156312020-05-02 22:34:40 -040014
15import util
Neale Ranns097fa662018-05-01 05:17:55 -070016from vpp_ip_route import VppIpRoute, VppRoutePath
17from vpp_ip import INVALID_INDEX
Hongjun Nief486b12017-04-12 19:21:16 +080018
19
Andrew Yourtchenko8dc0d482021-01-29 13:17:19 +000020@tag_fixme_vpp_workers
Dmitry Valter34fa0ce2024-03-11 10:38:46 +000021@unittest.skipIf("gtpu" in config.excluded_plugins, "Exclude GTPU plugin tests")
Jakub Grajciarebae4192019-05-23 13:01:41 +020022class TestGtpuUDP(VppTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020023 """GTPU UDP ports Test Case"""
Jakub Grajciarebae4192019-05-23 13:01:41 +020024
25 def setUp(self):
Paul Vinciguerra20344a12019-06-06 18:01:07 -040026 super(TestGtpuUDP, self).setUp()
Jakub Grajciarebae4192019-05-23 13:01:41 +020027
28 self.dport = 2152
29
30 self.ip4_err = 0
31 self.ip6_err = 0
32
33 self.create_pg_interfaces(range(1))
34 for pg in self.pg_interfaces:
35 pg.admin_up()
36 self.pg0.config_ip4()
37 self.pg0.config_ip6()
38
39 def _check_udp_port_ip4(self, enabled=True):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020040 pkt = (
Steven Luonge4238aa2024-04-19 09:49:20 -070041 Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020042 / IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4)
43 / UDP(sport=self.dport, dport=self.dport, chksum=0)
44 )
Jakub Grajciarebae4192019-05-23 13:01:41 +020045
46 self.pg0.add_stream(pkt)
47 self.pg_start()
48
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020049 err = self.statistics.get_counter("/err/ip4-udp-lookup/no_listener")[0]
Jakub Grajciarebae4192019-05-23 13:01:41 +020050
51 if enabled:
52 self.assertEqual(err, self.ip4_err)
53 else:
54 self.assertEqual(err, self.ip4_err + 1)
55
56 self.ip4_err = err
57
58 def _check_udp_port_ip6(self, enabled=True):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020059 pkt = (
Steven Luonge4238aa2024-04-19 09:49:20 -070060 Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac)
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020061 / IPv6(src=self.pg0.remote_ip6, dst=self.pg0.local_ip6)
62 / UDP(sport=self.dport, dport=self.dport, chksum=0)
63 )
Jakub Grajciarebae4192019-05-23 13:01:41 +020064
65 self.pg0.add_stream(pkt)
66 self.pg_start()
67
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020068 err = self.statistics.get_counter("/err/ip6-udp-lookup/no_listener")[0]
Jakub Grajciarebae4192019-05-23 13:01:41 +020069
70 if enabled:
71 self.assertEqual(err, self.ip6_err)
72 else:
73 self.assertEqual(err, self.ip6_err + 1)
74
75 self.ip6_err = err
76
77 def test_udp_port(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020078 """test UDP ports
Jakub Grajciarebae4192019-05-23 13:01:41 +020079 Check if there are no udp listeners before gtpu is enabled
80 """
Jakub Grajciarebae4192019-05-23 13:01:41 +020081 # UDP ports should be disabled unless a tunnel is configured
82 self._check_udp_port_ip4(False)
83 self._check_udp_port_ip6(False)
84
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020085 r = self.vapi.gtpu_add_del_tunnel(
86 is_add=True,
87 mcast_sw_if_index=0xFFFFFFFF,
88 decap_next_index=0xFFFFFFFF,
89 src_address=self.pg0.local_ip4,
90 dst_address=self.pg0.remote_ip4,
91 )
Jakub Grajciarebae4192019-05-23 13:01:41 +020092
93 # UDP port 2152 enabled for ip4
94 self._check_udp_port_ip4()
95
Klement Sekerad9b0c6f2022-04-26 19:02:15 +020096 r = self.vapi.gtpu_add_del_tunnel(
97 is_add=True,
98 mcast_sw_if_index=0xFFFFFFFF,
99 decap_next_index=0xFFFFFFFF,
100 src_address=self.pg0.local_ip6,
101 dst_address=self.pg0.remote_ip6,
102 )
Jakub Grajciarebae4192019-05-23 13:01:41 +0200103
104 # UDP port 2152 enabled for ip6
105 self._check_udp_port_ip6()
106
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200107 r = self.vapi.gtpu_add_del_tunnel(
108 is_add=False,
109 mcast_sw_if_index=0xFFFFFFFF,
110 decap_next_index=0xFFFFFFFF,
111 src_address=self.pg0.local_ip4,
112 dst_address=self.pg0.remote_ip4,
113 )
Jakub Grajciarebae4192019-05-23 13:01:41 +0200114
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200115 r = self.vapi.gtpu_add_del_tunnel(
116 is_add=False,
117 mcast_sw_if_index=0xFFFFFFFF,
118 decap_next_index=0xFFFFFFFF,
119 src_address=self.pg0.local_ip6,
120 dst_address=self.pg0.remote_ip6,
121 )
Jakub Grajciarebae4192019-05-23 13:01:41 +0200122
123
Dmitry Valter34fa0ce2024-03-11 10:38:46 +0000124@unittest.skipIf("gtpu" in config.excluded_plugins, "Exclude GTPU plugin tests")
Hongjun Nief486b12017-04-12 19:21:16 +0800125class TestGtpu(BridgeDomain, VppTestCase):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200126 """GTPU Test Case"""
Hongjun Nief486b12017-04-12 19:21:16 +0800127
128 def __init__(self, *args):
129 BridgeDomain.__init__(self)
130 VppTestCase.__init__(self, *args)
131
132 def encapsulate(self, pkt, vni):
133 """
134 Encapsulate the original payload frame by adding GTPU header with its
135 UDP, IP and Ethernet fields
136 """
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200137 return (
138 Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac)
139 / IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4)
140 / UDP(sport=self.dport, dport=self.dport, chksum=0)
141 / GTP_U_Header(teid=vni, gtp_type=self.gtp_type, length=150)
142 / pkt
143 )
Hongjun Nief486b12017-04-12 19:21:16 +0800144
Eyal Baricef1e2a2018-06-18 13:01:59 +0300145 def ip_range(self, start, end):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200146 """range of remote ip's"""
Eyal Baricef1e2a2018-06-18 13:01:59 +0300147 return ip4_range(self.pg0.remote_ip4, start, end)
148
Hongjun Nief486b12017-04-12 19:21:16 +0800149 def encap_mcast(self, pkt, src_ip, src_mac, vni):
150 """
151 Encapsulate the original payload frame by adding GTPU header with its
152 UDP, IP and Ethernet fields
153 """
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200154 return (
155 Ether(src=src_mac, dst=self.mcast_mac)
156 / IP(src=src_ip, dst=self.mcast_ip4)
157 / UDP(sport=self.dport, dport=self.dport, chksum=0)
158 / GTP_U_Header(teid=vni, gtp_type=self.gtp_type, length=150)
159 / pkt
160 )
Hongjun Nief486b12017-04-12 19:21:16 +0800161
162 def decapsulate(self, pkt):
163 """
164 Decapsulate the original payload frame by removing GTPU header
165 """
166 return pkt[GTP_U_Header].payload
167
168 # Method for checking GTPU encapsulation.
169 #
170 def check_encapsulation(self, pkt, vni, local_only=False, mcast_pkt=False):
171 # Verify source MAC is VPP_MAC and destination MAC is MY_MAC resolved
172 # by VPP using ARP.
173 self.assertEqual(pkt[Ether].src, self.pg0.local_mac)
174 if not local_only:
175 if not mcast_pkt:
176 self.assertEqual(pkt[Ether].dst, self.pg0.remote_mac)
177 else:
178 self.assertEqual(pkt[Ether].dst, type(self).mcast_mac)
179 # Verify GTPU tunnel source IP is VPP_IP and destination IP is MY_IP.
180 self.assertEqual(pkt[IP].src, self.pg0.local_ip4)
181 if not local_only:
182 if not mcast_pkt:
183 self.assertEqual(pkt[IP].dst, self.pg0.remote_ip4)
184 else:
185 self.assertEqual(pkt[IP].dst, type(self).mcast_ip4)
186 # Verify UDP destination port is GTPU 2152, source UDP port could be
187 # arbitrary.
188 self.assertEqual(pkt[UDP].dport, type(self).dport)
Neale Ranns2bc94022018-02-25 12:27:18 -0800189 # Verify teid
190 self.assertEqual(pkt[GTP_U_Header].teid, vni)
Hongjun Nief486b12017-04-12 19:21:16 +0800191
192 def test_encap(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200193 """Encapsulation test
Hongjun Nief486b12017-04-12 19:21:16 +0800194 Send frames from pg1
195 Verify receipt of encapsulated frames on pg0
196 """
197 self.pg1.add_stream([self.frame_reply])
198
199 self.pg0.enable_capture()
200
201 self.pg_start()
202
Paul Vinciguerra8feeaff2019-03-27 11:25:48 -0700203 # Pick first received frame and check if it's correctly encapsulated.
Hongjun Nief486b12017-04-12 19:21:16 +0800204 out = self.pg0.get_capture(1)
205 pkt = out[0]
Neale Ranns91fd9102020-04-03 07:46:28 +0000206 self.check_encapsulation(pkt, self.single_tunnel_vni)
Hongjun Nief486b12017-04-12 19:21:16 +0800207
208 # payload = self.decapsulate(pkt)
209 # self.assert_eq_pkts(payload, self.frame_reply)
210
211 def test_ucast_flood(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200212 """Unicast flood test
Hongjun Nief486b12017-04-12 19:21:16 +0800213 Send frames from pg3
214 Verify receipt of encapsulated frames on pg0
215 """
216 self.pg3.add_stream([self.frame_reply])
217
218 self.pg0.enable_capture()
219
220 self.pg_start()
221
Paul Vinciguerra8feeaff2019-03-27 11:25:48 -0700222 # Get packet from each tunnel and assert it's correctly encapsulated.
Hongjun Nief486b12017-04-12 19:21:16 +0800223 out = self.pg0.get_capture(self.n_ucast_tunnels)
224 for pkt in out:
225 self.check_encapsulation(pkt, self.ucast_flood_bd, True)
226 # payload = self.decapsulate(pkt)
227 # self.assert_eq_pkts(payload, self.frame_reply)
228
229 def test_mcast_flood(self):
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200230 """Multicast flood test
Hongjun Nief486b12017-04-12 19:21:16 +0800231 Send frames from pg2
232 Verify receipt of encapsulated frames on pg0
233 """
234 self.pg2.add_stream([self.frame_reply])
235
236 self.pg0.enable_capture()
237
238 self.pg_start()
239
Paul Vinciguerra8feeaff2019-03-27 11:25:48 -0700240 # Pick first received frame and check if it's correctly encapsulated.
Hongjun Nief486b12017-04-12 19:21:16 +0800241 out = self.pg0.get_capture(1)
242 pkt = out[0]
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200243 self.check_encapsulation(
244 pkt, self.mcast_flood_bd, local_only=False, mcast_pkt=True
245 )
Hongjun Nief486b12017-04-12 19:21:16 +0800246
247 # payload = self.decapsulate(pkt)
248 # self.assert_eq_pkts(payload, self.frame_reply)
249
250 @classmethod
251 def create_gtpu_flood_test_bd(cls, teid, n_ucast_tunnels):
252 # Create 10 ucast gtpu tunnels under bd
253 ip_range_start = 10
254 ip_range_end = ip_range_start + n_ucast_tunnels
Neale Ranns097fa662018-05-01 05:17:55 -0700255 next_hop_address = cls.pg0.remote_ip4
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200256 for dest_ip4 in ip4_range(next_hop_address, ip_range_start, ip_range_end):
Paul Vinciguerra2f156312020-05-02 22:34:40 -0400257 # add host route so dest_ip4 will not be resolved
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200258 rip = VppIpRoute(
259 cls,
260 dest_ip4,
261 32,
262 [VppRoutePath(next_hop_address, INVALID_INDEX)],
263 register=False,
264 )
Neale Ranns097fa662018-05-01 05:17:55 -0700265 rip.add_vpp_config()
Hongjun Nief486b12017-04-12 19:21:16 +0800266 r = cls.vapi.gtpu_add_del_tunnel(
Ole Troan55636cb2019-12-08 14:14:37 +0100267 is_add=True,
268 mcast_sw_if_index=0xFFFFFFFF,
269 decap_next_index=0xFFFFFFFF,
270 src_address=cls.pg0.local_ip4,
271 dst_address=dest_ip4,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200272 teid=teid,
273 )
274 cls.vapi.sw_interface_set_l2_bridge(
275 rx_sw_if_index=r.sw_if_index, bd_id=teid
276 )
Hongjun Nief486b12017-04-12 19:21:16 +0800277
278 @classmethod
279 def add_del_shared_mcast_dst_load(cls, is_add):
280 """
281 add or del tunnels sharing the same mcast dst
282 to test gtpu ref_count mechanism
283 """
284 n_shared_dst_tunnels = 20
285 teid_start = 1000
286 teid_end = teid_start + n_shared_dst_tunnels
287 for teid in range(teid_start, teid_end):
288 r = cls.vapi.gtpu_add_del_tunnel(
Ole Troan55636cb2019-12-08 14:14:37 +0100289 decap_next_index=0xFFFFFFFF,
290 src_address=cls.pg0.local_ip4,
291 dst_address=cls.mcast_ip4,
Hongjun Nief486b12017-04-12 19:21:16 +0800292 mcast_sw_if_index=1,
293 teid=teid,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200294 is_add=is_add,
295 )
296 if r.sw_if_index == 0xFFFFFFFF:
Paul Vinciguerrac599c6f2019-03-12 17:41:27 -0700297 raise ValueError("bad sw_if_index: ~0")
Hongjun Nief486b12017-04-12 19:21:16 +0800298
299 @classmethod
300 def add_shared_mcast_dst_load(cls):
301 cls.add_del_shared_mcast_dst_load(is_add=1)
302
303 @classmethod
304 def del_shared_mcast_dst_load(cls):
305 cls.add_del_shared_mcast_dst_load(is_add=0)
306
307 @classmethod
308 def add_del_mcast_tunnels_load(cls, is_add):
309 """
310 add or del tunnels to test gtpu stability
311 """
312 n_distinct_dst_tunnels = 20
313 ip_range_start = 10
314 ip_range_end = ip_range_start + n_distinct_dst_tunnels
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200315 for dest_ip4 in ip4_range(cls.mcast_ip4, ip_range_start, ip_range_end):
316 teid = int(dest_ip4.split(".")[3])
Hongjun Nief486b12017-04-12 19:21:16 +0800317 cls.vapi.gtpu_add_del_tunnel(
Ole Troan55636cb2019-12-08 14:14:37 +0100318 decap_next_index=0xFFFFFFFF,
319 src_address=cls.pg0.local_ip4,
320 dst_address=dest_ip4,
Hongjun Nief486b12017-04-12 19:21:16 +0800321 mcast_sw_if_index=1,
322 teid=teid,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200323 is_add=is_add,
324 )
Hongjun Nief486b12017-04-12 19:21:16 +0800325
326 @classmethod
327 def add_mcast_tunnels_load(cls):
328 cls.add_del_mcast_tunnels_load(is_add=1)
329
330 @classmethod
331 def del_mcast_tunnels_load(cls):
332 cls.add_del_mcast_tunnels_load(is_add=0)
333
334 # Class method to start the GTPU test case.
335 # Overrides setUpClass method in VppTestCase class.
336 # Python try..except statement is used to ensure that the tear down of
337 # the class will be executed even if exception is raised.
338 # @param cls The class pointer.
339 @classmethod
340 def setUpClass(cls):
341 super(TestGtpu, cls).setUpClass()
342
343 try:
344 cls.dport = 2152
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200345 cls.gtp_type = 0xFF
Hongjun Nief486b12017-04-12 19:21:16 +0800346
347 # Create 2 pg interfaces.
348 cls.create_pg_interfaces(range(4))
349 for pg in cls.pg_interfaces:
350 pg.admin_up()
351
352 # Configure IPv4 addresses on VPP pg0.
353 cls.pg0.config_ip4()
354
355 # Resolve MAC address for VPP's IP address on pg0.
356 cls.pg0.resolve_arp()
357
358 # Our Multicast address
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200359 cls.mcast_ip4 = "239.1.1.1"
Paul Vinciguerra2f156312020-05-02 22:34:40 -0400360 cls.mcast_mac = util.mcast_ip_to_mac(cls.mcast_ip4)
Hongjun Nief486b12017-04-12 19:21:16 +0800361
362 # Create GTPU VTEP on VPP pg0, and put gtpu_tunnel0 and pg1
363 # into BD.
364 cls.single_tunnel_bd = 11
Neale Ranns91fd9102020-04-03 07:46:28 +0000365 cls.single_tunnel_vni = 11
Hongjun Nief486b12017-04-12 19:21:16 +0800366 r = cls.vapi.gtpu_add_del_tunnel(
Ole Troan55636cb2019-12-08 14:14:37 +0100367 is_add=True,
368 mcast_sw_if_index=0xFFFFFFFF,
369 decap_next_index=0xFFFFFFFF,
370 src_address=cls.pg0.local_ip4,
371 dst_address=cls.pg0.remote_ip4,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200372 teid=cls.single_tunnel_vni,
373 )
Ole Troana5b2eec2019-03-11 19:23:25 +0100374 cls.vapi.sw_interface_set_l2_bridge(
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200375 rx_sw_if_index=r.sw_if_index, bd_id=cls.single_tunnel_bd
376 )
377 cls.vapi.sw_interface_set_l2_bridge(
378 rx_sw_if_index=cls.pg1.sw_if_index, bd_id=cls.single_tunnel_bd
379 )
Hongjun Nief486b12017-04-12 19:21:16 +0800380
381 # Setup teid 2 to test multicast flooding
382 cls.n_ucast_tunnels = 10
383 cls.mcast_flood_bd = 12
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200384 cls.create_gtpu_flood_test_bd(cls.mcast_flood_bd, cls.n_ucast_tunnels)
Hongjun Nief486b12017-04-12 19:21:16 +0800385 r = cls.vapi.gtpu_add_del_tunnel(
Ole Troan55636cb2019-12-08 14:14:37 +0100386 is_add=True,
387 src_address=cls.pg0.local_ip4,
388 dst_address=cls.mcast_ip4,
Hongjun Nief486b12017-04-12 19:21:16 +0800389 mcast_sw_if_index=1,
Ole Troan55636cb2019-12-08 14:14:37 +0100390 decap_next_index=0xFFFFFFFF,
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200391 teid=cls.mcast_flood_bd,
392 )
Ole Troana5b2eec2019-03-11 19:23:25 +0100393 cls.vapi.sw_interface_set_l2_bridge(
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200394 rx_sw_if_index=r.sw_if_index, bd_id=cls.mcast_flood_bd
395 )
396 cls.vapi.sw_interface_set_l2_bridge(
397 rx_sw_if_index=cls.pg2.sw_if_index, bd_id=cls.mcast_flood_bd
398 )
Hongjun Nief486b12017-04-12 19:21:16 +0800399
400 # Add and delete mcast tunnels to check stability
401 cls.add_shared_mcast_dst_load()
402 cls.add_mcast_tunnels_load()
403 cls.del_shared_mcast_dst_load()
404 cls.del_mcast_tunnels_load()
405
406 # Setup teid 3 to test unicast flooding
407 cls.ucast_flood_bd = 13
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200408 cls.create_gtpu_flood_test_bd(cls.ucast_flood_bd, cls.n_ucast_tunnels)
Ole Troana5b2eec2019-03-11 19:23:25 +0100409 cls.vapi.sw_interface_set_l2_bridge(
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200410 rx_sw_if_index=cls.pg3.sw_if_index, bd_id=cls.ucast_flood_bd
411 )
Hongjun Nief486b12017-04-12 19:21:16 +0800412 except Exception:
413 super(TestGtpu, cls).tearDownClass()
414 raise
415
Paul Vinciguerra7f9b7f92019-03-12 19:23:27 -0700416 @classmethod
417 def tearDownClass(cls):
418 super(TestGtpu, cls).tearDownClass()
419
Hongjun Nief486b12017-04-12 19:21:16 +0800420 # Method to define VPP actions before tear down of the test case.
421 # Overrides tearDown method in VppTestCase class.
422 # @param self The object pointer.
423 def tearDown(self):
424 super(TestGtpu, self).tearDown()
Paul Vinciguerra90cf21b2019-03-13 09:23:05 -0700425
426 def show_commands_at_teardown(self):
427 self.logger.info(self.vapi.cli("show bridge-domain 11 detail"))
428 self.logger.info(self.vapi.cli("show bridge-domain 12 detail"))
429 self.logger.info(self.vapi.cli("show bridge-domain 13 detail"))
430 self.logger.info(self.vapi.cli("show int"))
431 self.logger.info(self.vapi.cli("show gtpu tunnel"))
432 self.logger.info(self.vapi.cli("show trace"))
Hongjun Nief486b12017-04-12 19:21:16 +0800433
434
Klement Sekerad9b0c6f2022-04-26 19:02:15 +0200435if __name__ == "__main__":
Hongjun Nief486b12017-04-12 19:21:16 +0800436 unittest.main(testRunner=VppTestRunner)