0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 17:51:53 +00:00
bird/doc/reply_codes
Maria Matejka 8691151dbd CLI fix for long-lived sessions during high loads
When there is a continuos stream of CLI commands, cli_get_command()
always returns 1 (there is a new command). Anyway, the socket receive
buffer was reset only when there was no command at all, leading to a
strange behavior: after a while, the CLI receive buffer came to its end,
then read() was called with zero size buffer, it returned 0 which was
interpreted as EOF.

Fixing this by:
* resetting the buffer any time CLI RX gets to EOL
* explicitly refusing to pipeline

In future, we may implement CLI pipelining, yet to make it conveniently,
a push-parser may come handy instead of the current implementation.
2022-07-14 12:09:24 +02:00

79 lines
1.8 KiB
Plaintext

Reply codes of BIRD command-line interface
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0xxx Action suceessfully completed
1xxx Table entry
2xxx Table heading
8xxx Run-time error
9xxx Parse-time error
<space> Continuation
+ Spontaneous printout
0000 OK
0001 Welcome
0002 Reading configuration
0003 Reconfigured
0004 Reconfiguration in progress
0005 Reconfiguration already in progress, queueing
0006 Reconfiguration ignored, shutting down
0007 Shutdown ordered
0008 Already disabled
0009 Disabled
0010 Already enabled
0011 Enabled
0012 Restarted
0013 Status report
0014 Route count
0015 Reloading
0016 Access restricted
0017 Reconfiguration already in progress, removing queued config
0018 Reconfiguration confirmed
0019 Nothing to do (configure undo/confirm)
0020 Configuration OK
0021 Undo requested
0022 Undo scheduled
0023 Evaluation of expression
0024 Graceful restart status report
0025 Graceful restart ordered
1000 BIRD version
1001 Interface list
1002 Protocol list
1003 Interface address
1004 Interface flags
1005 Interface summary
1006 Protocol details
1007 Route list
1008 Route details
1009 Static route list
1010 Symbol list
1011 Uptime
1012 Route extended attribute list
1013 Show ospf neighbors
1014 Show ospf
1015 Show ospf interface
1016 Show ospf state/topology
1017 Show ospf lsadb
1018 Show memory
1019 Show ROA list
1020 Show BFD sessions
1021 Show RIP interface
1022 Show RIP neighbors
1023 Show Babel interfaces
1024 Show Babel neighbors
1025 Show Babel entries
8000 Reply too long
8001 Route not found
8002 Configuration file error
8003 No protocols match
8004 Stopped due to reconfiguration
8005 Protocol is down => cannot dump
8006 Reload failed
8007 Access denied
8008 Evaluation runtime error
9000 Command too long
9001 Parse error
9002 Invalid symbol type
9003 Pipelining not supported