]> xenbits.xensource.com Git - people/larsk/xen.git/commit
libxlu: Handle += in config files
authorAnthony PERARD <anthony.perard@citrix.com>
Tue, 13 Aug 2019 14:48:27 +0000 (15:48 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 20 Sep 2019 11:20:02 +0000 (12:20 +0100)
commita30910bfd71a64895f0d6ddbb301cf1b5ed6c2f4
treec3eda43eb0e3d0c0560ccc5406d2183e33be24d3
parent8d8d7d6b3dc11883fc1ee15574490566b395bf1a
libxlu: Handle += in config files

Handle += of both strings and lists.

If += is used for config options expected to be numbers, then a
warning is printed and the config option ignored (because xl ignores
config options with errors).

This is to be used for development purposes, where modifying config
option can be done on the `xl create' command line.

One could have a cmdline= in the cfg file, and specify cmdline+= on
the `xl create` command line without the need to write the whole
cmdline in `xl' command line but simply append to the one in the cfg file.
Or add an extra vif or disk by simply having "vif += [ '', ];" in the
`xl' cmdline.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxlu_cfg.c
tools/libxl/libxlu_cfg_i.h
tools/libxl/libxlu_cfg_l.c
tools/libxl/libxlu_cfg_l.h
tools/libxl/libxlu_cfg_l.l
tools/libxl/libxlu_cfg_y.c
tools/libxl/libxlu_cfg_y.h
tools/libxl/libxlu_cfg_y.y
tools/libxl/libxlu_internal.h
tools/libxl/libxlutil.h