[Oisf-wg-configuration_language] YAML issues.
Frank Knobbe
frank at knobbe.us
Sat Aug 22 16:24:03 UTC 2009
On Thu, 2009-08-20 at 09:59 -0700, Jason Ish wrote:
> So while doing some work with YAML we ran into a few issues that I'd
> like to bring up here.
[...]
> The issue here is that "!" can't be used outside quotes in YAML as it
> has special meaning. The ":" character also has special meaning. So
> if we want Snort like variable definitions, we need to quote
> everything. For example:
>
> vars:
> HOME_NET: "172.16.1.0/24"
> EXTERNAL_NET: "!$HOME_NET"
I can see that leading to a lot of configuration errors and
head-scratching. Maybe YAML is not the best option after all?
Writing a parser is not hard. Why not roll your own, YAML-like?
(I personally prefer to roll my own parser. Avoids sucking in all those
bugs of existing parsing libs. And I can tailor it to my needs.)
Cheers,
Frank
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 188 bytes
Desc: This is a digitally signed message part
URL: <http://lists.openinfosecfoundation.org/pipermail/oisf-wg-configuration_language/attachments/20090822/9c53be82/attachment.sig>
More information about the Oisf-wg-configuration_language
mailing list