Revision 7578ab0a
ID | 7578ab0a81db437f5340c9d574217beb525104b7 |
Parent | 6a062ff9 |
Child | 3802f3cf |
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 <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
Files
- added
- modified
- copied
- renamed
- deleted