Command map

request peer teardown

Tear down a peer session.

Ze command

Registry path
request peer teardown
Usage
request peer <selector> teardown <cease-subcode>
Mode
Daemon
Wire method
ze-bgp:peer-teardown
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

The subcode is the NOTIFICATION subcode for error code 6 and it takes 0 to 255.
Ze sends an RFC 9003 Shutdown Communication with subcode 2, Administrative
Shutdown, and with subcode 4, Administrative Reset, and with no other subcode.
The message follows the subcode on the command line, and the answer echoes the
truncated text that went on the wire. With no message, Ze sends the subcode's
name, such as Administrative Shutdown, as the communication. The selector names
one peer: *, an exclusion and a selector matching several peers are refused.

Arguments

NameTypeRequiredValuesSummaryDescription
selectorstringyesany value of this typeAn address or peer name; * or a pattern for refresh, borr, eorr and flushThe value is an IP address, a peer name, an AS pattern such as as65001, a glob, or * for every peer. 'refresh', 'borr', 'eorr' and 'flush' act on every peer it matches. 'teardown', 'notify', 'disable', 'enable', 'pause', 'resume' and 'clear soft' act on one session: they refuse *, an exclusion such as !edge1, and a selector that matches more than one peer, and they accept a pattern or glob that matches exactly one peer.
cease-subcodeuintyesany value of this typeBGP cease NOTIFICATION subcodeThe value is a whole number from 0 to 255, and a value outside that range is refused. Ze puts it in the Cease NOTIFICATION it sends before it closes the session.

Mapping intents

Hard reset one BGP peer

Category: BGP

Juniper Junos MX

Hard reset one BGP peer

clear bgp neighbor <peer> verified source: clear bgp neighbor

Cisco IOS XR

Hard reset one BGP peer

clear bgp ipv4 unicast <peer> verified source: BGP commands

Nokia SR OS

No equivalent is listed for this vendor yet.