« Previous | Next » 

Revision 7578ab0a

ID7578ab0a81db437f5340c9d574217beb525104b7
Parent 6a062ff9
Child 3802f3cf

Added by Michael Hanselmann almost 11 years ago

qlang: Add parser for query filter language

With this parser, command line utilities will be able to provide filters
through query2 in a simplistic language. Example filters:

name  "node3.example.com" 
master or (name "node4.example.com")
be/memory == 128 and name =~ /^web/i
"inst1.example.com" in sinst_list
status != "up"
not master

Parts of the syntax came from Python, others from Perl. Documentation
will be added in follow-up patches.

Signed-off-by: Michael Hanselmann <>
Reviewed-by: Iustin Pop <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences