[Linux-ha-dev] rsc_location expressions

Andrew lists at beekhof.homeip.net
Wed Jun 30 05:49:34 MDT 2004


On Jun 30, 2004, at 12:56 PM, Lars Marowsky-Bree wrote:

> On 2004-06-30T12:43:48,
>    Andrew <lists at beekhof.homeip.net> said:
>
>> mostly for lmb...
>>
>>
>> right now we have match=attr:value and not_match=attr:value
>>
>> what do you think of allowing attr(?|=|<|>)value, where '?' means
>> present at all.
>
> Sounds good, though >= and <= also seem likely candidates.

You could just invert it.  I left them out because it kept the 
delimeter to one character.

Really though its not very pretty and we should probably go for:

<!ELEMENT node_expression EMPTY>
<!ATTLIST node_expression
	  id                CDATA #REQUIRED
	  attribute     CDATA #REQUIRED
	  operation  (lt | gt | lte | gte | eq | ne | exists | notexists)
	  value          CDATA #IMPLIED
	  type	   (integer | string)    'string'>

Type would determine if the values being tested are converted to 
numbers (maybe floats?) before being compared.


>> this would be particularly useful for OS/kernel versions and it means
>> we can do RA version requirements this way too.
>
> Yes.
>
>
> Sincerely,
>     Lars Marowsky-Brée <lmb at suse.de>
>
> -- 
> High Availability & Clustering	    \ ever tried. ever failed. no 
> matter.
> SUSE Labs, Research and Development | try again. fail again. fail 
> better.
> SUSE LINUX AG - A Novell company    \ 	-- Samuel Beckett
>
> _______________________________________________________
> Linux-HA-Dev: Linux-HA-Dev at lists.linux-ha.org
> http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
> Home Page: http://linux-ha.org/



More information about the Linux-HA-Dev mailing list