[augeas-devel] [Interfaces] Draft lense

Free Ekanayaka free at 64studio.com
Wed Aug 20 09:22:17 UTC 2008


Hi,

I'm new on this list, first of all thank you for this great project :)

Here is a lense I wrote to parse the /etc/network/interfaces file (at
least this is the location of the on Debian systems). The test is
exactly the example found in the manpage (man interfaces).

Known issues:

1) Options after an iface or mapping stanza must start with a space or
a tab, like:

iface eth0-home inet static
   address 192.168.1.1

otherwise the parse will fail. Note this is not strictly required by
the official format, but I did not find a clean way to support it.

2) The official format support splitting long lines using a \ at the
end of the line, this not supported by the lense yet.

This is my first lense, so comments are really appreciated :)

Ciao!

Free
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test_interfaces.aug
Type: application/octet-stream
Size: 1554 bytes
Desc: test
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080820/7ceab8fe/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: interfaces.aug
Type: application/octet-stream
Size: 1445 bytes
Desc: lense
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080820/7ceab8fe/attachment-0001.obj>


More information about the augeas-devel mailing list