[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libvir] Semantics for ListDomains/ ListDefinedDomains



On Wed, Aug 30, 2006 at 10:06:29AM -0400, Daniel Veillard wrote:
> 
>   Okay, there is a a first version in CVS under libvirt/src/conf.[ch]
> It allows only variable assignments and comments, the types supported
> are the [] lists, integers and strings. Still that should be sufficient
> to handled  most data oriented existing Python Xen configurations.

I tested it against 30 or so configuration files I've accumulated on my 
Xen test systems and there were only two tiny adjustments I needed to make.
First I extended it to allow '_' in names, eg to handle

  on_reboot = 'restart'

Then I relaxed the list parser to allow a trailing ',' at the end of a 
list, eg

  bar = [ "foo", ]

Since it looks like xenguest-install had auto-generated a huge number of
my config files with trailing ',' in the list of disks / NICs. With those
two changes it parses all my example config files perfectly :-) I'm half
way through adding support for passsive domains using this config file
parser & its looking very promising! 

Regards,
Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-           Perl modules: http://search.cpan.org/~danberr/              -=|
|=-               Projects: http://freshmeat.net/~danielpb/               -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]