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

Method send_and_assert_no_replies

test/framework.py:561–585  ·  view source on GitHub ↗
(
        self, intf, pkts, remark="", timeout=None, stats_diff=None, trace=True, msg=None
    )

Source from the content-addressed store, hash-verified

559 self.pg_start(trace=trace)
560
561 def send_and_assert_no_replies(
562 self, intf, pkts, remark="", timeout=None, stats_diff=None, trace=True, msg=None
563 ):
564 if stats_diff:
565 stats_snapshot = self.snapshot_stats(stats_diff)
566
567 self.pg_send(intf, pkts)
568
569 if timeout is not None:
570 deadline = time.time() + timeout
571
572 try:
573 for i in self.pg_interfaces:
574 i.assert_nothing_captured(
575 timeout=None if timeout is None else deadline - time.time(),
576 remark=remark,
577 )
578 finally:
579 if trace:
580 if msg:
581 self.logger.debug(f"send_and_assert_no_replies: {msg}")
582 self.logger.debug(self.vapi.cli("show trace"))
583
584 if stats_diff:
585 self.compare_stats_with_snapshot(stats_diff, stats_snapshot)
586
587 def send_and_expect_multi(
588 self,

Callers 15

test_igmp_hostMethod · 0.80
test_greMethod · 0.80
test_gre6Method · 0.80
test_gre_vrfMethod · 0.80
test_gre_loopMethod · 0.80
test_mgreMethod · 0.80
test_mgre6Method · 0.80
test_one_fragmentMethod · 0.80

Calls 5

pg_sendMethod · 0.95
snapshot_statsMethod · 0.45
cliMethod · 0.45

Tested by 15

test_igmp_hostMethod · 0.64
test_greMethod · 0.64
test_gre6Method · 0.64
test_gre_vrfMethod · 0.64
test_gre_loopMethod · 0.64
test_mgreMethod · 0.64
test_mgre6Method · 0.64
test_one_fragmentMethod · 0.64