[Pacemaker] RFC: Compacting constraints

Colin colin.hch at gmail.com
Fri Nov 6 21:13:32 UTC 2009


> conjoin dummies-dep base-clone {dummy1, dummy2, dummy3, ...} \
>        meta score_collocation=infinity score_order=0

Suppose we allow regular expressions:

order dummy(\d+)-o 0: base-clone dummy#1

(Where \d is a digit, and #1 inserts the string that matched the first
bracketed sub-regular-expression from the "other" resource name...

Just thinking out loud, regexes could make so many things shorter...

Regards, Colin




More information about the Pacemaker mailing list