feature #4320: CONTEXT can now be updated in poweroff related states

This commit is contained in:
Ruben S. Montero committed 2016-04-22 11:31:47 +02:00
1 parent 88a66d53f2
commit 759e645821
7 files changed
+51 -20

No files matched your search

+1 -1
View File
@@ -362,7 +362,7 @@ EOT
TEMPLATE_OPTIONS[3]]
UPDATECONF_OPTIONS_VM = TEMPLATE_OPTIONS[6..15] + [TEMPLATE_OPTIONS[2],
TEMPLATE_OPTIONS[18]]
TEMPLATE_OPTIONS[17], TEMPLATE_OPTIONS[18]]
OPTIONS = XML, NUMERIC, KILOBYTES
+6
View File
@@ -943,6 +943,10 @@ cmd=CommandParser::CmdParser.new(ARGV) do
onevm updateconf myvm --arch x86_64 --vnc
- Change the DNS for ETH0 device and add PASSWORD:
onevm updateconf myvm --context "ETH0_DNS=\\"8.8.8.8\\", PASSWORD=\\"1234\\""
This command also accepts a template, the full list of configuration
attributes are (not all supported via options):
OS = ["ARCH", "MACHINE", "KERNEL", "INITRD", "BOOTLOADER", "BOOT"]
@@ -950,9 +954,11 @@ cmd=CommandParser::CmdParser.new(ARGV) do
INPUT = ["TYPE", "BUS"]
GRAPHICS = ["TYPE", "LISTEN", "PASSWD", "KEYMAP" ]
RAW = ["DATA", "DATA_VMX", "TYPE"]
CONTEXT (any value, **no variable substitution will be made**)
*NOTE* Update will replace or add attributes, to remove an existing one
add an empty value.
EOT
command :updateconf, updateconf_desc, :vmid, [:file, nil], :options =>