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)
| 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""" |
no test coverage detected