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

NameTypeRequiredValues
selectorstringyesany value of this type
cease-subcodeuintyesany value of this type

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.