Commit 88076fd1 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

qlang: Add new operators



These are only used programmatically, not exposed to the user.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarRené Nussbaumer <rn@google.com>
parent ff699aa9
......@@ -24,8 +24,21 @@
from ganeti import errors
# Logic operators
OP_OR = "|"
OP_AND = "&"
# Unary operators
OP_NOT = "!"
# Binary operators
OP_EQUAL = "="
OP_NOT_EQUAL = "!="
OP_GLOB = "=*"
OP_REGEXP = "=~"
OP_CONTAINS = "=[]"
def ReadSimpleFilter(namefield, filter_):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment