Hi Frederic,

I haven't looked the lens deeply. Just a little note on your filter
statement. You could use "/etc/radiusd.conf" already, and test it using the
-r flag in augparse/augtool to specify a fakeroot.


Raphaël

On Wed, Jun 23, 2010 at 3:03 PM, Francis Giraldeau <
[email protected]> wrote:

> Le mercredi 23 juin 2010 à 11:45 +0200, Frederic Descamps a écrit :
> > Hello,
> >
> > I'm new in the use of augeas and I'm trying to create a lense (for
> > radius configuration files)
> >
> > I'm not able to create the sections (that are identified by section_name
> > { } )
>
> First, you can get the regexp corresponding to the listen lens with this
> snipet, before the actual test in test_radius.aug (the second command is
> only to get a newline):
>
> let _ = print_regexp(lens_ctype(Radius.listen))
> let _ = print_endline ""
>
> It gaves me this:
>
> /[\t ]*listen[\t ]+\\{[\t ]*\n([\t ]*type:[\t ]+(auth|proxy|acct|
> detail)[\t ]*\n|[\t ]*port:[\t ]+[0-9]+[\t ]*\n|[\t ]*#?[\t ]*
> \n|[\t ]*#[\t ]*([^\t\n ].*[^\t\n ]|[^\t\n ])[\t ]*\n)*[\t ]*\\}[\t ]*
> \n/
>
> The regexp doesn't match because of "type:" should be "type = ".
>
> I modified slightly the test and it pass, so you can continue, see
> joined files, you can replace kvsec1 and kvsec2 and play with it.
>
> Have a nice day,
>
> Francis
>
> _______________________________________________
> augeas-devel mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/augeas-devel
>
_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to