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

Method send_packet

test/test_bfd.py:798–807  ·  view source on GitHub ↗

send packet on interface, creating the packet if needed

(self, packet=None, interface=None)

Source from the content-addressed store, hash-verified

796 return packet
797
798 def send_packet(self, packet=None, interface=None):
799 """send packet on interface, creating the packet if needed"""
800 if packet is None:
801 packet = self.create_packet()
802 if interface is None:
803 interface = self.phy_interface
804 self.test.logger.debug(ppp("Sending packet:", packet))
805 interface.add_stream(packet)
806 self.tx_packets += 1
807 self.test.pg_start()
808
809 def verify_sha1_auth(self, packet):
810 """Verify correctness of authentication in BFD layer."""

Calls 4

create_packetMethod · 0.95
pppFunction · 0.90
pg_startMethod · 0.80
add_streamMethod · 0.45

Tested by

no test coverage detected