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 8203 shutdown communication message 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.

Arguments

NameTypeRequiredValuesSummaryDescription
selectorstringyesany value of this typePeer selectorThe value is an IP address, a peer name, an AS pattern such as as65001, a glob, or * for every peer. 'pause' and 'resume' refuse a selector that matches more than one peer, and the other commands act on each peer it matches.
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.