[augeas-devel] [Augeas] #71: parse error on Debian: dhclient.conf

Augeas trac at fedorahosted.org
Mon Dec 19 11:23:23 UTC 2011


#71: parse error on Debian: dhclient.conf
-------------------------+-------------------------------------------------
  Reporter:  micah       |       Owner:  fgiraldeau
      Type:  defect      |      Status:  assigned
  Priority:  minor       |   Milestone:  next
 Component:  Augeas      |     Version:  0.5.1
Resolution:              |    Keywords:  debian, parse error, lense,
  Blocking:              |  dhclient.conf
                         |  Blocked By:
-------------------------+-------------------------------------------------
Description changed by raphink:

Old description:

> <pre>
> augtool> ls /augeas/files/etc/dhcp3/dhclient.conf/error
> pos = 500
> line = 14
> char = 0
> lens = /usr/share/augeas/lenses/dist/dhclient.aug:156.24-158.38
> message = Iterated lens matched less than it should
> </pre>
>
> <pre>
> # Configuration file for /sbin/dhclient, which is included in Debian's
> #       dhcp3-client package.
> #
> # This is a sample configuration file for dhclient. See dhclient.conf's
> #       man page for more information about the syntax of this file
> #       and a more comprehensive list of the parameters understood by
> #       dhclient.
> #
> # Normally, if the DHCP server provides reasonable information and does
> #       not leave anything out (like the domain name, for example), then
> #       few changes must be made to this file, if any.
> #
>
> option rfc3442-classless-static-routes code 121 = array of unsigned
> integer 8;
>
> #send host-name "andare.fugue.com";
> #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
> #send dhcp-lease-time 3600;
> #supersede domain-name "fugue.com home.vix.com";
> #prepend domain-name-servers 127.0.0.1;
> request subnet-mask, broadcast-address, time-offset, routers,
>         domain-name, domain-name-servers, domain-search, host-name,
>         netbios-name-servers, netbios-scope, interface-mtu,
>         rfc3442-classless-static-routes, ntp-servers;
> #require subnet-mask, domain-name-servers;
> #timeout 60;
> #retry 60;
> #reboot 10;
> #select-timeout 5;
> #initial-interval 2;
> #script "/etc/dhcp3/dhclient-script";
> #media "-link0 -link1 -link2", "link0 link1";
> #reject 192.33.137.209;
>
> #alias {
> #  interface "eth0";
> #  fixed-address 192.5.5.213;
> #  option subnet-mask 255.255.255.255;
> #}
>
> #lease {
> #  interface "eth0";
> #  fixed-address 192.33.137.200;
> #  medium "link0 link1";
> #  option host-name "andare.swiftmedia.com";
> #  option subnet-mask 255.255.255.0;
> #  option broadcast-address 192.33.137.255;
> #  option routers 192.33.137.250;
> #  option domain-name-servers 127.0.0.1;
> #  renew 2 2000/1/12 00:00:01;
> #  rebind 2 2000/1/12 00:00:01;
> #  expire 2 2000/1/12 00:00:01;
> #}
>
> supersede domain-name-servers 127.0.0.1,208.67.220.220;
> supersede domain-name "mydomain.net";
> </pre>

New description:

 {{{
 augtool> ls /augeas/files/etc/dhcp3/dhclient.conf/error
 pos = 500
 line = 14
 char = 0
 lens = /usr/share/augeas/lenses/dist/dhclient.aug:156.24-158.38
 message = Iterated lens matched less than it should
 }}}

 {{{
 # Configuration file for /sbin/dhclient, which is included in Debian's
 #       dhcp3-client package.
 #
 # This is a sample configuration file for dhclient. See dhclient.conf's
 #       man page for more information about the syntax of this file
 #       and a more comprehensive list of the parameters understood by
 #       dhclient.
 #
 # Normally, if the DHCP server provides reasonable information and does
 #       not leave anything out (like the domain name, for example), then
 #       few changes must be made to this file, if any.
 #

 option rfc3442-classless-static-routes code 121 = array of unsigned
 integer 8;

 #send host-name "andare.fugue.com";
 #send dhcp-client-identifier 1:0:a0:24:ab:fb:9c;
 #send dhcp-lease-time 3600;
 #supersede domain-name "fugue.com home.vix.com";
 #prepend domain-name-servers 127.0.0.1;
 request subnet-mask, broadcast-address, time-offset, routers,
         domain-name, domain-name-servers, domain-search, host-name,
         netbios-name-servers, netbios-scope, interface-mtu,
         rfc3442-classless-static-routes, ntp-servers;
 #require subnet-mask, domain-name-servers;
 #timeout 60;
 #retry 60;
 #reboot 10;
 #select-timeout 5;
 #initial-interval 2;
 #script "/etc/dhcp3/dhclient-script";
 #media "-link0 -link1 -link2", "link0 link1";
 #reject 192.33.137.209;

 #alias {
 #  interface "eth0";
 #  fixed-address 192.5.5.213;
 #  option subnet-mask 255.255.255.255;
 #}

 #lease {
 #  interface "eth0";
 #  fixed-address 192.33.137.200;
 #  medium "link0 link1";
 #  option host-name "andare.swiftmedia.com";
 #  option subnet-mask 255.255.255.0;
 #  option broadcast-address 192.33.137.255;
 #  option routers 192.33.137.250;
 #  option domain-name-servers 127.0.0.1;
 #  renew 2 2000/1/12 00:00:01;
 #  rebind 2 2000/1/12 00:00:01;
 #  expire 2 2000/1/12 00:00:01;
 #}

 supersede domain-name-servers 127.0.0.1,208.67.220.220;
 supersede domain-name "mydomain.net";
 }}}

--

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/71#comment:3>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list