---
lib/backend.py | 5 +++++
lib/objects.py | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/lib/backend.py b/lib/backend.py
index 1e5afa0..8eebb87 100644
--- a/lib/backend.py
+++ b/lib/backend.py
@@ -2875,6 +2875,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 584dc9f..2ed7213 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",
]
--
1.7.3.1