[augeas-devel] [Augeas] #360: interfaces.aug should allow numeric characters in stanza_option key
Augeas
trac at fedorahosted.org
Thu Aug 22 17:57:37 UTC 2013
#360: interfaces.aug should allow numeric characters in stanza_option key
----------------------+---------------------
Reporter: plalonde | Owner: lutter
Type: defect | Status: new
Priority: minor | Milestone: next
Component: Augeas | Version: 1.0.0
Keywords: | Blocked By:
Blocking: |
----------------------+---------------------
On Debian-based systems, from interfaces(5) manpage:
"Additionally, all options given in an interface definition stanza are
exported to the environment in upper case with "IF_" prepended and with
hyphens converted to underscores and non-alphanumeric characters
discarded."
Which would imply that it is expected that a stanza may contain
alphanumeric, hyphens and underscores. interfaces.aug should match that.
One such case where it fails is with the vde2-switch stanza (from
/etc/network/if-pre-up.d/vde2)
{{{
--- interfaces.aug.orig 2013-07-02 10:13:11.495523697 -0400
+++ interfaces.aug 2013-07-02 10:12:46.335272162 -0400
@@ -41,7 +41,7 @@
(* Define additional lines for multi-line stanzas *)
let stanza_option = [ del /[ \t]*/ " "
- . key ( /[a-z_-]+/ - stanza_word )
+ . key ( /[a-z0-9_-]+/ - stanza_word )
. sep_spc
. sto_to_eol ]
}}}
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/360>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list