Revision 88076fd1 lib/qlang.py
b/lib/qlang.py | ||
---|---|---|
24 | 24 |
from ganeti import errors |
25 | 25 |
|
26 | 26 |
|
27 |
# Logic operators |
|
27 | 28 |
OP_OR = "|" |
29 |
OP_AND = "&" |
|
30 |
|
|
31 |
|
|
32 |
# Unary operators |
|
33 |
OP_NOT = "!" |
|
34 |
|
|
35 |
|
|
36 |
# Binary operators |
|
28 | 37 |
OP_EQUAL = "=" |
38 |
OP_NOT_EQUAL = "!=" |
|
39 |
OP_GLOB = "=*" |
|
40 |
OP_REGEXP = "=~" |
|
41 |
OP_CONTAINS = "=[]" |
|
29 | 42 |
|
30 | 43 |
|
31 | 44 |
def ReadSimpleFilter(namefield, filter_): |
Also available in: Unified diff