MCPcopy Create free account
hub / github.com/FDio/vpp / run_verify_test

Method run_verify_test

test/test_l2bd_multi_instance.py:399–428  ·  view source on GitHub ↗

Create packet streams for all configured l2-pg interfaces, send all \ prepared packet streams and verify that: - all packets received correctly on all pg-l2 interfaces assigned to bridge domains - no packet received on all pg-l2 interfaces not a

(self)

Source from the content-addressed store, hash-verified

397 return 1
398
399 def run_verify_test(self):
400 """
401 Create packet streams for all configured l2-pg interfaces, send all \
402 prepared packet streams and verify that:
403 - all packets received correctly on all pg-l2 interfaces assigned
404 to bridge domains
405 - no packet received on all pg-l2 interfaces not assigned to
406 bridge domains
407
408 :raise RuntimeError: if no packet captured on l2-pg interface assigned
409 to the bridge domain or if any packet is captured
410 on l2-pg interface not assigned to the bridge
411 domain.
412 """
413 # Test
414 # Create incoming packet streams for packet-generator interfaces
415 # for pg_if in self.pg_interfaces:
416 assert len(self._packet_count_for_dst_if_idx) == 0
417 for pg_if in self.pg_in_bd:
418 pkts = self.create_stream(pg_if)
419 pg_if.add_stream(pkts)
420
421 # Enable packet capture and start packet sending
422 self.pg_enable_capture(self.pg_in_bd)
423 self.pg_start()
424
425 # Verify
426 # Verify outgoing packet streams per packet-generator interface
427 for pg_if in self.pg_in_bd:
428 self.verify_capture(pg_if)
429
430 def test_l2bd_inst_01(self):
431 """L2BD Multi-instance test 1 - create 5 BDs"""

Callers 3

test_l2bd_inst_01Method · 0.95
test_l2bd_inst_03Method · 0.95
test_l2bd_inst_04Method · 0.95

Calls 5

create_streamMethod · 0.95
verify_captureMethod · 0.95
pg_enable_captureMethod · 0.80
pg_startMethod · 0.80
add_streamMethod · 0.45

Tested by

no test coverage detected