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

Method send_and_expect_some

test/framework.py:701–710  ·  view source on GitHub ↗
(self, intf, pkts, output, worker=None, trace=True)

Source from the content-addressed store, hash-verified

699 return rxs
700
701 def send_and_expect_some(self, intf, pkts, output, worker=None, trace=True):
702 self.pg_send(intf, pkts, worker=worker, trace=trace)
703 rx = output._get_capture()
704 if trace:
705 self.logger.debug(self.vapi.cli("show trace"))
706 self.assertTrue(len(rx) > 0)
707 self.assertTrue(
708 len(rx) <= len(pkts), f"len(rx) ({len(rx)}) > len(pkts) ({len(pkts)})"
709 )
710 return rx
711
712 def send_and_expect_only(
713 self, intf, pkts, output, timeout=None, stats_diff=None, worker=None, trace=True

Calls 3

pg_sendMethod · 0.95
_get_captureMethod · 0.80
cliMethod · 0.45