util module

class util.Host(mac=None, ip4=None, ip6=None)

Bases: object

Generic test host “connected” to VPPs interface.

ip4

IPv4 address

ip4n

IPv4 address

ip6

IPv6 address

mac

MAC address

class util.NumericConstant(value)

Bases: object

desc_dict = {}
util.ppc(headline, capture, limit=10)

Return string containing ppp() printout for a capture.

Parameters:
  • headline – printed as first line of output
  • capture – packets to print
  • limit – limit the print to # of packets
util.ppp(headline, packet)

Return string containing the output of scapy packet.show() call.