diff --git a/lib/backend.py b/lib/backend.py index fc24694c190251777fe4eccaf98c5fec3baddd25..2cb5ba1b7cdd59d412fa7daaf8cb120bd8207cce 100644 --- a/lib/backend.py +++ b/lib/backend.py @@ -2878,6 +2878,11 @@ def StartImportExportDaemon(mode, opts, host, port, instance, ieio, ieioargs): if port: cmd.append("--port=%s" % port) + if opts.ipv6: + cmd.append("--ipv6") + else: + cmd.append("--ipv4") + if opts.compress: cmd.append("--compress=%s" % opts.compress) diff --git a/lib/objects.py b/lib/objects.py index 584dc9f556679f2c902ace73cb1da24f212e77ed..2ed721363d4e741152d4d6deb7bee8f183a36b42 100644 --- a/lib/objects.py +++ b/lib/objects.py @@ -1334,6 +1334,7 @@ class ImportExportOptions(ConfigObject): @ivar ca_pem: Remote peer CA in PEM format (None for cluster certificate) @ivar compress: Compression method (one of L{constants.IEC_ALL}) @ivar magic: Used to ensure the connection goes to the right disk + @ivar ipv6: Whether to use IPv6 """ __slots__ = [ @@ -1341,6 +1342,7 @@ class ImportExportOptions(ConfigObject): "ca_pem", "compress", "magic", + "ipv6", ]