On Thu, Oct 14, 2010 at 7:58 PM, Augeas <[email protected]> wrote:

> #140: New lens: pg_hba.conf (PostgreSQL's access control configuration)
>
> --------------------------+-------------------------------------------------
>  Reporter:  abompard     |       Owner:  lutter
>       Type:  enhancement  |      Status:  closed
>   Priority:  major        |   Milestone:  next
>  Component:  Augeas       |     Version:  0.7.0
> Resolution:  fixed        |    Keywords:
>
> --------------------------+-------------------------------------------------
> Changes (by lutter):
>
>  * status:  new => closed
>  * resolution:  => fixed
>
> Comment:
>
>  Nice, something I've been wanting for ages. I've committed the new lens in
>  commit 88ecc983
>
>

Very nice and useful. Would you like to consider mapping ipaddr the way it's
done in keepalived.aug ?

 (* View: prefixlen
  A prefix for IP addresses *)
 let prefixlen = [ label "prefixlen" . Util.del_str "/" . sto_num ]

 (* View: ipaddr
  An IP address or range with an optional mask *)
 let ipaddr = label "ipaddr" . store /[0-9\.-]+/ . prefixlen?


This creates a subnode prefixlen for the prefix such as /24. Note that
keepalived.aug uses a loose regex for ipaddr because it supports IP ranges.
If you need a strong regex for both IPv4 and IPv6 without ranges, you can
also use Rx.ip.


Raphaël
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to