Renato Botelho do Couto | ead1e53 | 2019-10-31 13:31:07 -0500 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 2 | |
Paul Vinciguerra | 2f15631 | 2020-05-02 22:34:40 -0400 | [diff] [blame] | 3 | from util import ip4_range |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 4 | import unittest |
Dave Wallace | 8800f73 | 2023-08-31 00:47:44 -0400 | [diff] [blame] | 5 | from framework import VppTestCase |
| 6 | from asfframework import VppTestRunner |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 7 | from template_bd import BridgeDomain |
| 8 | |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 9 | from scapy.layers.l2 import Ether, ARP |
| 10 | from scapy.layers.inet import IP, UDP, ICMP |
snaramre | 5d4b891 | 2019-12-13 23:39:35 +0000 | [diff] [blame] | 11 | from scapy.contrib.geneve import GENEVE |
Paul Vinciguerra | 2f15631 | 2020-05-02 22:34:40 -0400 | [diff] [blame] | 12 | |
| 13 | import util |
Neale Ranns | 097fa66 | 2018-05-01 05:17:55 -0700 | [diff] [blame] | 14 | from vpp_ip_route import VppIpRoute, VppRoutePath |
| 15 | from vpp_ip import INVALID_INDEX |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 16 | |
| 17 | |
| 18 | class TestGeneve(BridgeDomain, VppTestCase): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 19 | """GENEVE Test Case""" |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 20 | |
| 21 | def __init__(self, *args): |
| 22 | BridgeDomain.__init__(self) |
| 23 | VppTestCase.__init__(self, *args) |
| 24 | |
| 25 | def encapsulate(self, pkt, vni): |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 26 | """ |
| 27 | Encapsulate the original payload frame by adding GENEVE header with its |
| 28 | UDP, IP and Ethernet fields |
| 29 | """ |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 30 | return ( |
| 31 | Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) |
| 32 | / IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) |
| 33 | / UDP(sport=self.dport, dport=self.dport, chksum=0) |
| 34 | / GENEVE(vni=vni) |
| 35 | / pkt |
| 36 | ) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 37 | |
Eyal Bari | cef1e2a | 2018-06-18 13:01:59 +0300 | [diff] [blame] | 38 | def ip_range(self, start, end): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 39 | """range of remote ip's""" |
Eyal Bari | cef1e2a | 2018-06-18 13:01:59 +0300 | [diff] [blame] | 40 | return ip4_range(self.pg0.remote_ip4, start, end) |
| 41 | |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 42 | def encap_mcast(self, pkt, src_ip, src_mac, vni): |
| 43 | """ |
| 44 | Encapsulate the original payload frame by adding GENEVE header with its |
| 45 | UDP, IP and Ethernet fields |
| 46 | """ |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 47 | return ( |
| 48 | Ether(src=src_mac, dst=self.mcast_mac) |
| 49 | / IP(src=src_ip, dst=self.mcast_ip4) |
| 50 | / UDP(sport=self.dport, dport=self.dport, chksum=0) |
| 51 | / GENEVE(vni=vni) |
| 52 | / pkt |
| 53 | ) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 54 | |
| 55 | def decapsulate(self, pkt): |
| 56 | """ |
| 57 | Decapsulate the original payload frame by removing GENEVE header |
| 58 | """ |
| 59 | # check if is set I flag |
| 60 | # self.assertEqual(pkt[GENEVE].flags, int('0x8', 16)) |
| 61 | return pkt[GENEVE].payload |
| 62 | |
| 63 | # Method for checking GENEVE encapsulation. |
| 64 | # |
| 65 | def check_encapsulation(self, pkt, vni, local_only=False, mcast_pkt=False): |
| 66 | # TODO: add error messages |
| 67 | # Verify source MAC is VPP_MAC and destination MAC is MY_MAC resolved |
| 68 | # by VPP using ARP. |
| 69 | self.assertEqual(pkt[Ether].src, self.pg0.local_mac) |
| 70 | if not local_only: |
| 71 | if not mcast_pkt: |
| 72 | self.assertEqual(pkt[Ether].dst, self.pg0.remote_mac) |
| 73 | else: |
| 74 | self.assertEqual(pkt[Ether].dst, type(self).mcast_mac) |
| 75 | # Verify GENEVE tunnel source IP is VPP_IP and destination IP is MY_IP. |
| 76 | self.assertEqual(pkt[IP].src, self.pg0.local_ip4) |
| 77 | if not local_only: |
| 78 | if not mcast_pkt: |
| 79 | self.assertEqual(pkt[IP].dst, self.pg0.remote_ip4) |
| 80 | else: |
| 81 | self.assertEqual(pkt[IP].dst, type(self).mcast_ip4) |
| 82 | # Verify UDP destination port is GENEVE 4789, source UDP port could be |
| 83 | # arbitrary. |
| 84 | self.assertEqual(pkt[UDP].dport, type(self).dport) |
| 85 | # TODO: checksum check |
| 86 | # Verify VNI |
| 87 | self.assertEqual(pkt[GENEVE].vni, vni) |
| 88 | |
| 89 | @classmethod |
| 90 | def create_geneve_flood_test_bd(cls, vni, n_ucast_tunnels): |
| 91 | # Create 10 ucast geneve tunnels under bd |
| 92 | ip_range_start = 10 |
| 93 | ip_range_end = ip_range_start + n_ucast_tunnels |
Neale Ranns | 097fa66 | 2018-05-01 05:17:55 -0700 | [diff] [blame] | 94 | next_hop_address = cls.pg0.remote_ip4 |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 95 | for dest_ip4 in ip4_range(next_hop_address, ip_range_start, ip_range_end): |
Jakub Grajciar | 2d3282e | 2019-10-01 12:04:56 +0200 | [diff] [blame] | 96 | # add host route so dest_ip4 will not be resolved |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 97 | rip = VppIpRoute( |
| 98 | cls, |
| 99 | dest_ip4, |
| 100 | 32, |
| 101 | [VppRoutePath(next_hop_address, INVALID_INDEX)], |
| 102 | register=False, |
| 103 | ) |
Neale Ranns | 097fa66 | 2018-05-01 05:17:55 -0700 | [diff] [blame] | 104 | rip.add_vpp_config() |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 105 | r = cls.vapi.geneve_add_del_tunnel( |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 106 | local_address=cls.pg0.local_ip4, remote_address=dest_ip4, vni=vni |
| 107 | ) |
| 108 | cls.vapi.sw_interface_set_l2_bridge(rx_sw_if_index=r.sw_if_index, bd_id=vni) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 109 | |
| 110 | @classmethod |
| 111 | def add_del_shared_mcast_dst_load(cls, is_add): |
| 112 | """ |
| 113 | add or del tunnels sharing the same mcast dst |
| 114 | to test geneve ref_count mechanism |
| 115 | """ |
Gabriel Ganne | 97cabc9 | 2018-02-08 11:22:33 +0100 | [diff] [blame] | 116 | n_shared_dst_tunnels = 10 |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 117 | vni_start = 10000 |
| 118 | vni_end = vni_start + n_shared_dst_tunnels |
| 119 | for vni in range(vni_start, vni_end): |
| 120 | r = cls.vapi.geneve_add_del_tunnel( |
Jakub Grajciar | 2d3282e | 2019-10-01 12:04:56 +0200 | [diff] [blame] | 121 | local_address=cls.pg0.local_ip4, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 122 | remote_address=cls.mcast_ip4, |
| 123 | mcast_sw_if_index=1, |
| 124 | is_add=is_add, |
| 125 | vni=vni, |
| 126 | ) |
| 127 | if r.sw_if_index == 0xFFFFFFFF: |
Paul Vinciguerra | c599c6f | 2019-03-12 17:41:27 -0700 | [diff] [blame] | 128 | raise ValueError("bad sw_if_index: ~0") |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 129 | |
| 130 | @classmethod |
| 131 | def add_shared_mcast_dst_load(cls): |
| 132 | cls.add_del_shared_mcast_dst_load(is_add=1) |
| 133 | |
| 134 | @classmethod |
| 135 | def del_shared_mcast_dst_load(cls): |
| 136 | cls.add_del_shared_mcast_dst_load(is_add=0) |
| 137 | |
| 138 | @classmethod |
| 139 | def add_del_mcast_tunnels_load(cls, is_add): |
| 140 | """ |
| 141 | add or del tunnels to test geneve stability |
| 142 | """ |
Gabriel Ganne | 97cabc9 | 2018-02-08 11:22:33 +0100 | [diff] [blame] | 143 | n_distinct_dst_tunnels = 10 |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 144 | ip_range_start = 10 |
| 145 | ip_range_end = ip_range_start + n_distinct_dst_tunnels |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 146 | for dest_ip4 in ip4_range(cls.mcast_ip4, ip_range_start, ip_range_end): |
| 147 | vni = int(dest_ip4.split(".")[3]) |
| 148 | cls.vapi.geneve_add_del_tunnel( |
| 149 | local_address=cls.pg0.local_ip4, |
| 150 | remote_address=dest_ip4, |
| 151 | mcast_sw_if_index=1, |
| 152 | is_add=is_add, |
| 153 | vni=vni, |
| 154 | ) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 155 | |
| 156 | @classmethod |
| 157 | def add_mcast_tunnels_load(cls): |
| 158 | cls.add_del_mcast_tunnels_load(is_add=1) |
| 159 | |
| 160 | @classmethod |
| 161 | def del_mcast_tunnels_load(cls): |
| 162 | cls.add_del_mcast_tunnels_load(is_add=0) |
| 163 | |
| 164 | # Class method to start the GENEVE test case. |
| 165 | # Overrides setUpClass method in VppTestCase class. |
| 166 | # Python try..except statement is used to ensure that the tear down of |
| 167 | # the class will be executed even if exception is raised. |
| 168 | # @param cls The class pointer. |
| 169 | @classmethod |
| 170 | def setUpClass(cls): |
| 171 | super(TestGeneve, cls).setUpClass() |
| 172 | |
| 173 | try: |
| 174 | cls.dport = 6081 |
| 175 | |
| 176 | # Create 2 pg interfaces. |
| 177 | cls.create_pg_interfaces(range(4)) |
| 178 | for pg in cls.pg_interfaces: |
| 179 | pg.admin_up() |
| 180 | |
| 181 | # Configure IPv4 addresses on VPP pg0. |
| 182 | cls.pg0.config_ip4() |
| 183 | |
| 184 | # Resolve MAC address for VPP's IP address on pg0. |
| 185 | cls.pg0.resolve_arp() |
| 186 | |
| 187 | # Our Multicast address |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 188 | cls.mcast_ip4 = "239.1.1.1" |
Paul Vinciguerra | 2f15631 | 2020-05-02 22:34:40 -0400 | [diff] [blame] | 189 | cls.mcast_mac = util.mcast_ip_to_mac(cls.mcast_ip4) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 190 | |
| 191 | # Create GENEVE VTEP on VPP pg0, and put geneve_tunnel0 and pg1 |
| 192 | # into BD. |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 193 | cls.single_tunnel_vni = 0xABCDE |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 194 | cls.single_tunnel_bd = 1 |
| 195 | r = cls.vapi.geneve_add_del_tunnel( |
Jakub Grajciar | 2d3282e | 2019-10-01 12:04:56 +0200 | [diff] [blame] | 196 | local_address=cls.pg0.local_ip4, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 197 | remote_address=cls.pg0.remote_ip4, |
| 198 | vni=cls.single_tunnel_vni, |
| 199 | ) |
Ole Troan | a5b2eec | 2019-03-11 19:23:25 +0100 | [diff] [blame] | 200 | cls.vapi.sw_interface_set_l2_bridge( |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 201 | rx_sw_if_index=r.sw_if_index, bd_id=cls.single_tunnel_bd |
| 202 | ) |
| 203 | cls.vapi.sw_interface_set_l2_bridge( |
| 204 | rx_sw_if_index=cls.pg1.sw_if_index, bd_id=cls.single_tunnel_bd |
| 205 | ) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 206 | |
| 207 | # Setup vni 2 to test multicast flooding |
| 208 | cls.n_ucast_tunnels = 10 |
| 209 | cls.mcast_flood_bd = 2 |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 210 | cls.create_geneve_flood_test_bd(cls.mcast_flood_bd, cls.n_ucast_tunnels) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 211 | r = cls.vapi.geneve_add_del_tunnel( |
Jakub Grajciar | 2d3282e | 2019-10-01 12:04:56 +0200 | [diff] [blame] | 212 | local_address=cls.pg0.local_ip4, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 213 | remote_address=cls.mcast_ip4, |
| 214 | mcast_sw_if_index=1, |
| 215 | vni=cls.mcast_flood_bd, |
| 216 | ) |
Ole Troan | a5b2eec | 2019-03-11 19:23:25 +0100 | [diff] [blame] | 217 | cls.vapi.sw_interface_set_l2_bridge( |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 218 | rx_sw_if_index=r.sw_if_index, bd_id=cls.mcast_flood_bd |
| 219 | ) |
| 220 | cls.vapi.sw_interface_set_l2_bridge( |
| 221 | rx_sw_if_index=cls.pg2.sw_if_index, bd_id=cls.mcast_flood_bd |
| 222 | ) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 223 | |
| 224 | # Add and delete mcast tunnels to check stability |
| 225 | cls.add_shared_mcast_dst_load() |
| 226 | cls.add_mcast_tunnels_load() |
| 227 | cls.del_shared_mcast_dst_load() |
| 228 | cls.del_mcast_tunnels_load() |
| 229 | |
| 230 | # Setup vni 3 to test unicast flooding |
| 231 | cls.ucast_flood_bd = 3 |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 232 | cls.create_geneve_flood_test_bd(cls.ucast_flood_bd, cls.n_ucast_tunnels) |
Ole Troan | a5b2eec | 2019-03-11 19:23:25 +0100 | [diff] [blame] | 233 | cls.vapi.sw_interface_set_l2_bridge( |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 234 | rx_sw_if_index=cls.pg3.sw_if_index, bd_id=cls.ucast_flood_bd |
| 235 | ) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 236 | except Exception: |
| 237 | super(TestGeneve, cls).tearDownClass() |
| 238 | raise |
| 239 | |
| 240 | # Method to define VPP actions before tear down of the test case. |
| 241 | # Overrides tearDown method in VppTestCase class. |
| 242 | # @param self The object pointer. |
| 243 | def tearDown(self): |
| 244 | super(TestGeneve, self).tearDown() |
Paul Vinciguerra | 90cf21b | 2019-03-13 09:23:05 -0700 | [diff] [blame] | 245 | |
| 246 | def show_commands_at_teardown(self): |
| 247 | self.logger.info(self.vapi.cli("show bridge-domain 1 detail")) |
| 248 | self.logger.info(self.vapi.cli("show bridge-domain 2 detail")) |
| 249 | self.logger.info(self.vapi.cli("show bridge-domain 3 detail")) |
| 250 | self.logger.info(self.vapi.cli("show geneve tunnel")) |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 251 | |
| 252 | |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 253 | class TestGeneveL3(VppTestCase): |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 254 | """GENEVE L3 Test Case""" |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 255 | |
| 256 | @classmethod |
| 257 | def setUpClass(cls): |
| 258 | super(TestGeneveL3, cls).setUpClass() |
| 259 | try: |
| 260 | cls.create_pg_interfaces(range(2)) |
| 261 | cls.interfaces = list(cls.pg_interfaces) |
| 262 | |
| 263 | for i in cls.interfaces: |
| 264 | i.admin_up() |
| 265 | i.config_ip4() |
| 266 | i.resolve_arp() |
| 267 | except Exception: |
| 268 | super(TestGeneveL3, cls).tearDownClass() |
| 269 | raise |
| 270 | |
| 271 | @classmethod |
| 272 | def tearDownClass(cls): |
| 273 | super(TestGeneveL3, cls).tearDownClass() |
| 274 | |
| 275 | def tearDown(self): |
| 276 | super(TestGeneveL3, self).tearDown() |
| 277 | |
| 278 | def show_commands_at_teardown(self): |
| 279 | self.logger.info(self.vapi.cli("show geneve tunnel")) |
| 280 | self.logger.info(self.vapi.cli("show ip neighbor")) |
| 281 | |
| 282 | def test_l3_packet(self): |
| 283 | vni = 1234 |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 284 | r = self.vapi.add_node_next( |
| 285 | node_name="geneve4-input", next_name="ethernet-input" |
| 286 | ) |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 287 | r = self.vapi.geneve_add_del_tunnel2( |
| 288 | is_add=1, |
| 289 | local_address=self.pg0.local_ip4, |
| 290 | remote_address=self.pg0.remote_ip4, |
| 291 | vni=vni, |
| 292 | l3_mode=1, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 293 | decap_next_index=r.next_index, |
| 294 | ) |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 295 | |
| 296 | self.vapi.sw_interface_add_del_address( |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 297 | sw_if_index=r.sw_if_index, prefix="10.0.0.1/24" |
| 298 | ) |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 299 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 300 | pkt = ( |
| 301 | Ether(src=self.pg0.remote_mac, dst="d0:0b:ee:d0:00:00") |
| 302 | / IP(src="10.0.0.2", dst="10.0.0.1") |
| 303 | / ICMP() |
| 304 | ) |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 305 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 306 | encap = ( |
| 307 | Ether(src=self.pg0.remote_mac, dst=self.pg0.local_mac) |
| 308 | / IP(src=self.pg0.remote_ip4, dst=self.pg0.local_ip4) |
| 309 | / UDP(sport=6081, dport=6081, chksum=0) |
| 310 | / GENEVE(vni=vni) |
| 311 | ) |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 312 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 313 | arp = Ether(src=self.pg0.remote_mac, dst="d0:0b:ee:d0:00:00") / ARP( |
| 314 | op="is-at", |
| 315 | hwsrc=self.pg0.remote_mac, |
| 316 | hwdst="d0:0b:ee:d0:00:00", |
| 317 | psrc="10.0.0.2", |
| 318 | pdst="10.0.0.1", |
| 319 | ) |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 320 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 321 | rx = self.send_and_expect(self.pg0, encap / pkt * 1, self.pg0) |
| 322 | rx = self.send_and_assert_no_replies(self.pg0, encap / arp * 1, self.pg0) |
| 323 | rx = self.send_and_expect(self.pg0, encap / pkt * 1, self.pg0) |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 324 | self.assertEqual(rx[0][ICMP].type, 0) # echo reply |
| 325 | |
| 326 | r = self.vapi.geneve_add_del_tunnel2( |
| 327 | is_add=0, |
| 328 | local_address=self.pg0.local_ip4, |
| 329 | remote_address=self.pg0.remote_ip4, |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 330 | vni=vni, |
| 331 | ) |
Ole Troan | 7fc88cf | 2020-06-17 22:57:13 +0200 | [diff] [blame] | 332 | |
Klement Sekera | d9b0c6f | 2022-04-26 19:02:15 +0200 | [diff] [blame] | 333 | |
| 334 | if __name__ == "__main__": |
Marco Varlese | b598f1d | 2017-09-19 14:25:28 +0200 | [diff] [blame] | 335 | unittest.main(testRunner=VppTestRunner) |