diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2017-02-16 19:24:17 +0100 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2017-02-16 19:24:17 +0100 |
| commit | 2bb314c17b3293f4c4a504cee7d5daa19de4a2b5 (patch) | |
| tree | da98466d54e8ae783b617ded0313d7109de818c8 /src/libcharon/plugins/vici/python | |
| parent | c2129d1cbe6b482cf956a1f609ff974c9dcd5b24 (diff) | |
| parent | e16d1005f7c14b261a4d91f63159f96688fd8f00 (diff) | |
| download | strongswan-2bb314c17b3293f4c4a504cee7d5daa19de4a2b5.tar.bz2 strongswan-2bb314c17b3293f4c4a504cee7d5daa19de4a2b5.tar.xz | |
Merge branch 'vici-updates'
Adds several new features for the VICI interface and swanctl.
Diffstat (limited to 'src/libcharon/plugins/vici/python')
| -rw-r--r-- | src/libcharon/plugins/vici/python/vici/session.py | 6 |
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. |
