On 02/15/2012 10:16 AM, Nicolas Charles wrote:
> Hello Thibault,
> 
> Your problem is that the following notation is not doing what you would 
> expect :
> 
>          "zone1" or      =>  { "172.30.64.171" };
>          "zone2" or      =>  { "192.168.55.4" };
> 
> The ip adress, written like this, is not a valid class expression.
> You can use the ipv4 hard classes
> 
>          "zone1" or      =>  {"ipv4_172_30_64_171"};
>          "zone2" or      =>  {"ipv4_192_168_55_4");

172_30_64_171 and 192_168_55_4 are also valid class names.

You could do an slist with your ips and then create a canonified list to
use in your class match.


-- 
Nick Anderson <n...@cmdln.org>
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to