aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/vici/python
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2016-12-08 18:14:40 +0100
committerTobias Brunner <tobias@strongswan.org>2017-02-16 19:21:12 +0100
commitd20bf50e04b5ed34f045cf084a4ad14f6026891e (patch)
treef867353ca90da64f3341030b3d6d045176bccd7d /src/libcharon/plugins/vici/python
parent71fa1224ec9b227d4aa8f1350d132380af00e786 (diff)
downloadstrongswan-d20bf50e04b5ed34f045cf084a4ad14f6026891e.tar.bz2
strongswan-d20bf50e04b5ed34f045cf084a4ad14f6026891e.tar.xz
vici: Update get_pools() in Python and Ruby bindings
Diffstat (limited to 'src/libcharon/plugins/vici/python')
-rw-r--r--src/libcharon/plugins/vici/python/vici/session.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libcharon/plugins/vici/python/vici/session.py b/src/libcharon/plugins/vici/python/vici/session.py
index 5bd4b7c40..1383fa778 100644
--- a/src/libcharon/plugins/vici/python/vici/session.py
+++ b/src/libcharon/plugins/vici/python/vici/session.py
@@ -208,13 +208,15 @@ class Session(object):
"""
self.handler.request("unload-pool", pool_name)
- def get_pools(self):
+ def get_pools(self, options):
"""Retrieve loaded pools.
+ :param options: filter by name and/or retrieve leases (optional)
+ :type options: dict
:return: loaded pools
:rtype: dict
"""
- return self.handler.request("get-pools")
+ return self.handler.request("get-pools", options)
def listen(self, event_types):
"""Register and listen for the given events.