]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: Fix augeas support for migration ports
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Oct 2013 16:28:14 +0000 (18:28 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 9 Jan 2014 13:25:35 +0000 (14:25 +0100)
Commit e3ef20d7 allows user to configure migration ports range via
qemu.conf. However, it forgot to update augeas definition file and
even the test data was malicious.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
(cherry picked from commit d9be5a7157515eeae99379e9544c34b34c5e5198)

Conflicts:
  missing support for changing migration listen_address

src/qemu/libvirtd_qemu.aug
src/qemu/test_libvirtd_qemu.aug.in

src/qemu/libvirtd_qemu.aug
src/qemu/test_libvirtd_qemu.aug.in

index a3dcb30d22058389fbe4622dc9f49d0cf0eb9f4b..58d7258def6cb3406d1418d4ce917411299dd3f7 100644 (file)
@@ -74,6 +74,9 @@ module Libvirtd_qemu =
                  | int_entry "keepalive_interval"
                  | int_entry "keepalive_count"
 
+   let network_entry = int_entry "migration_port_min"
+                 | int_entry "migration_port_max"
+
    (* Each entry in the config is one of the following ... *)
    let entry = vnc_entry
              | spice_entry
@@ -83,6 +86,7 @@ module Libvirtd_qemu =
              | process_entry
              | device_entry
              | rpc_entry
+             | network_entry
 
    let comment = [ label "#comment" . del /#[ \t]*/ "# " .  store /([^ \t\n][^\n]*)?/ . del /\n/ "\n" ]
    let empty = [ label "#empty" . eol ]
index d57b3b48c48424e3793e36d83cc3c0d68ea9b678..de23e8e4e516cff5c2c7e0033daf02189ff98ee9 100644 (file)
@@ -63,5 +63,5 @@ module Test_libvirtd_qemu =
 { "keepalive_interval" = "5" }
 { "keepalive_count" = "5" }
 { "seccomp_sandbox" = "1" }
-{ "migration_port_min" = "1234" }
-{ "migration_port_max" = "12345" }
+{ "migration_port_min" = "49152" }
+{ "migration_port_max" = "49215" }