[virt-tools-list] [PATCH virt-manager 1/3] virtinst: add method to set connection keep-alive
Giuseppe Scrivano
gscrivan at redhat.com
Tue Jul 1 13:36:41 UTC 2014
Signed-off-by: Giuseppe Scrivano <gscrivan at redhat.com>
---
virtinst/connection.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/virtinst/connection.py b/virtinst/connection.py
index c31beda..10e22d2 100644
--- a/virtinst/connection.py
+++ b/virtinst/connection.py
@@ -1,5 +1,5 @@
#
-# Copyright 2013 Red Hat, Inc.
+# Copyright 2013, 2014 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -201,6 +201,10 @@ class VirtualConnection(object):
self._fetch_cache[key] = ret
return ret
+ def set_keep_alive(self, interval, count):
+ if hasattr(self._libvirtconn, "setKeepAlive"):
+ self._libvirtconn.setKeepAlive(interval, count)
+
def fetch_all_pools(self):
"""
Returns a list of StoragePool objects
--
1.9.3
More information about the virt-tools-list
mailing list