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

Augeas trac at fedorahosted.org
Sun Oct 3 17:50:53 UTC 2010


#71: parse error on Debian: dhclient.conf
---------------------+------------------------------------------------------
  Reporter:  micah   |       Owner:  lutter                                   
      Type:  defect  |      Status:  new                                      
  Priority:  minor   |   Milestone:  next                                     
 Component:  Augeas  |     Version:  0.5.1                                    
Resolution:          |    Keywords:  debian, parse error, lense, dhclient.conf
---------------------+------------------------------------------------------
Comment (by fgiraldeau):

 There seems two problems with this bug. It halts on line:

    supersede domain-name-servers 127.0.0.1,208.67.220.220;

 1 - From the lens: TODO: support the "default", "supersede", "append" and
 "prepend" statements
 2 - The argument of domain-name-servers contain a coma "," and this is
 allowed only if the argument is between double quotes

 1- seems trivial to fix, because "supersede" is the same as "option". But,
 2- needs some discussion. We can allow a coma in unquoted argument, or we
 can change the tree structure to suite a list.

     { "supersede"
       { "domain-name-servers" = "1.2.3.4,5.6.7.8" }
     }

 could be changed to :

     { "supersede"
       { "domain-name-servers"
         { "value" = "1.2.3.4" }
         { "value" = "5.6.7.8" }
       }
     }

 or maybe with extra work even to:

     { "supersede"
       { "domain-name-servers" = "1.2.3.4" }
       { "domain-name-servers" = "5.6.7.8" }
     }

 There is a little demo lens attached to show a way to do it.

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




More information about the augeas-devel mailing list