mirror of
				https://gitlab.labs.nic.cz/labs/bird.git
				synced 2024-05-11 16:54:54 +00:00 
			
		
		
		
	Implements eval command and minor CLI cleanups.
Implemented eval command can be used to evaluate expressions. The patch also documents echo command and allows to use log classes instead of integer as a mask for echo.
This commit is contained in:
		@@ -282,7 +282,7 @@ protocol rip {
 | 
			
		||||
	<tag>include "<m/filename/"</tag> 
 | 
			
		||||
	This statement causes inclusion of a new file. The maximal depth is set to 5.
 | 
			
		||||
 | 
			
		||||
	<tag>log "<m/filename/"|syslog [name <m/name/]|stderr all|{ <m/list of classes/ }</tag> 
 | 
			
		||||
	<tag><label id="dsc-log">log "<m/filename/"|syslog [name <m/name/]|stderr all|{ <m/list of classes/ }</tag> 
 | 
			
		||||
	Set logging of messages having the given class (either <cf/all/ or <cf/{
 | 
			
		||||
	error, trace }/ etc.) into selected destination (a file specified as a filename string,
 | 
			
		||||
	syslog with optional name argument, or the stderr output). Classes are:
 | 
			
		||||
@@ -651,9 +651,6 @@ This argument can be omitted if there exists only a single instance.
 | 
			
		||||
<p>Here is a brief list of supported functions:
 | 
			
		||||
 | 
			
		||||
<descrip>
 | 
			
		||||
	<tag>dump resources|sockets|interfaces|neighbors|attributes|routes|protocols</tag>
 | 
			
		||||
	Dump contents of internal data structures to the debugging output.
 | 
			
		||||
 | 
			
		||||
	<tag>show status</tag>
 | 
			
		||||
	Show router status, that is BIRD version, uptime and time from last reconfiguration.
 | 
			
		||||
 | 
			
		||||
@@ -812,6 +809,17 @@ This argument can be omitted if there exists only a single instance.
 | 
			
		||||
 | 
			
		||||
	<tag>debug <m/protocol/|<m/pattern/|all all|off|{ states | routes | filters | events | packets }</tag>
 | 
			
		||||
	Control protocol debugging.
 | 
			
		||||
 | 
			
		||||
	<tag>dump resources|sockets|interfaces|neighbors|attributes|routes|protocols</tag>
 | 
			
		||||
	Dump contents of internal data structures to the debugging output.
 | 
			
		||||
 | 
			
		||||
	<tag>echo all|off|{ <m/list of log classes/ } [ <m/buffer-size/ ]</tag>
 | 
			
		||||
	Control echoing of log messages to the command-line output.
 | 
			
		||||
	See <ref id="dsc-log" name="log option"> for a list of log classes.
 | 
			
		||||
 | 
			
		||||
	<tag>eval <m/expr/</tag>
 | 
			
		||||
	Evaluate given expression.
 | 
			
		||||
 | 
			
		||||
</descrip>
 | 
			
		||||
 | 
			
		||||
<chapt>Filters
 | 
			
		||||
 
 | 
			
		||||
@@ -31,6 +31,7 @@ Reply codes of BIRD command-line interface
 | 
			
		||||
0020	Configuration OK
 | 
			
		||||
0021	Undo requested
 | 
			
		||||
0022	Undo scheduled
 | 
			
		||||
0023	Evaluation of expression
 | 
			
		||||
 | 
			
		||||
1000	BIRD version
 | 
			
		||||
1001	Interface list
 | 
			
		||||
@@ -61,6 +62,7 @@ Reply codes of BIRD command-line interface
 | 
			
		||||
8005	Protocol is down => cannot dump
 | 
			
		||||
8006	Reload failed
 | 
			
		||||
8007	Access denied
 | 
			
		||||
8008	Evaluation runtime error
 | 
			
		||||
 | 
			
		||||
9000	Command too long
 | 
			
		||||
9001	Parse error
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user