Pg cli reference

create packet-generator interface

create packet-generator interface <interface name> [hw-addr <addr>] [gso-enabled gso-size <size> [coalesce-enabled]] [mode <ethernet | ip4 | ip6>]

Declaration: create_pg_if_cmd src/vnet/pg/cli.c line 720

Implementation: create_pg_if_cmd_fn

delete packet-generator interface

delete packet-generator interface {<interface name> | sw_if_index <sw_idx>}

Declaration: delete_pg_if_cmd src/vnet/pg/cli.c line 769

Implementation: delete_pg_if_cmd_fn

packet-generator

Packet generator commands

Declaration: vlib_cli_pg_command src/vnet/pg/cli.c line 51

packet-generator capture

packet-generator capture <interface name> pcap <filename> [count <n>]

Declaration: pg_capture_cmd src/vnet/pg/cli.c line 655

Implementation: pg_capture_cmd_fn

packet-generator configure

Change packet generator stream parameters

Declaration: change_stream_parameters_cli src/vnet/pg/cli.c line 574

Implementation: change_stream_parameters

packet-generator delete

Delete stream with given name

Declaration: del_stream_cli src/vnet/pg/cli.c line 529

Implementation: del_stream

packet-generator disable-stream

Disable packet generator streams

Declaration: disable_streams_cli src/vnet/pg/cli.c line 145

Implementation: enable_disable_stream

packet-generator mac-filter

packet-generator mac-filter <INTERFACE> <on|off>

Declaration: enable_streams_cli src/vnet/pg/input.c line 1975

Implementation: pg_input_mac_filter_cfg

packet-generator new

Create packet generator stream
Create packet generator stream

Arguments:

name STRING          sets stream name
interface STRING     interface for stream output
node NODE-NAME       node for stream output
data STRING          specifies packet data
pcap FILENAME        read packet data from pcap file
rate PPS             rate to transfer packet data
maxframe NPKTS       maximum number of packets per frame

Declaration: new_stream_cli src/vnet/pg/cli.c line 495

Implementation: new_stream

show packet-generator

show packet-generator [verbose]

Declaration: show_streams_cli src/vnet/pg/cli.c line 246

Implementation: show_streams