virtinst: add method to set connection keep-alive

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2014-07-01 12:54:38 +02:00
parent 3c2dc15af7
commit 3606bb573d

View File

@ -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