Command map

send bgp raw

Send raw bytes into a peer's TCP stream (dangerous).

Ze command

Registry path
send bgp raw
Usage
send bgp <selector> raw <hex|b64> <data> [type <open|update|notification|keepalive|route-refresh>]
Mode
Daemon
Wire method
ze-bgp:peer-raw
Backends
any backend
Task support
optional: the MCP call is synchronous, which is the default
Subcommands
none: this command takes no subcommand
Pipes, always
json, ndjson, table, text, yaml, raw, no-more, save
Pipes, when the answer has rows
match, count, first, last, display, fill
Pipes, while streaming
log
Pipes, local process only
save

Description

Injects arbitrary bytes with no BGP framing and no validation. It is for
conformance testing and fuzzing only, and it will break the session if it is used
carelessly. With a type keyword ze writes the marker and the header, and the data carries
the message body alone. Without a type keyword the data carries the whole packet, marker
and header included.

Arguments

NameTypeRequiredValuesSummaryDescription
selectorstringyesany value of this typePeer selectorThe value is an IP address, a peer name, an AS pattern such as as65001, a glob, a comma-separated list of those, or * for every peer. The message goes to each session the selector matches.
encodingenumyeshex b64How the data below is encoded.The word is required and it is typed before the data. Ze decodes the data with it, and data the decoder refuses is an error.
datastringyesany value of this typeThe bytes to send, in the encoding above.The value is one token, the octets in the encoding named before it. With a type keyword after it, the octets are the message body alone. Without one, they are the whole packet, marker and header included.
typeenumnoopen update notification keepalive route-refreshThe BGP message type ze writes a header for.The word is optional and any other word there is refused. With it, Ze writes the 16-byte marker and the length and type fields, and the data is the body. Absent, the data is sent as it is.

Mapping status

No vendor equivalent has been curated yet for this Ze command.

Juniper Junos MX

No equivalent is listed for this vendor yet.

Cisco IOS XR

No equivalent is listed for this vendor yet.

Nokia SR OS

No equivalent is listed for this vendor yet.

VyOS

No equivalent is listed for this vendor yet.