diff options
| author | Tobias Brunner <tobias@strongswan.org> | 2015-04-28 17:45:52 +0200 |
|---|---|---|
| committer | Tobias Brunner <tobias@strongswan.org> | 2016-03-04 16:02:59 +0100 |
| commit | 43b46b26ea1eac87e6e4189c5ef3b92ccb885c66 (patch) | |
| tree | 519b1ff63f1c83c985f2b6e86a3fe73f29cad586 /src/libcharon/plugins/vici/python | |
| parent | 0d424d2107218a0fb03b05ca6981caa3d3be0721 (diff) | |
| download | strongswan-43b46b26ea1eac87e6e4189c5ef3b92ccb885c66.tar.bz2 strongswan-43b46b26ea1eac87e6e4189c5ef3b92ccb885c66.tar.xz | |
vici: Add redirect command
This allows redirecting IKE_SAs by multiple different selectors, if none
are given all SAs are redirected.
Diffstat (limited to 'src/libcharon/plugins/vici/python')
| -rw-r--r-- | src/libcharon/plugins/vici/python/vici/session.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libcharon/plugins/vici/python/vici/session.py b/src/libcharon/plugins/vici/python/vici/session.py index 283e3d13d..66de8590a 100644 --- a/src/libcharon/plugins/vici/python/vici/session.py +++ b/src/libcharon/plugins/vici/python/vici/session.py @@ -53,6 +53,14 @@ class Session(object): """ return self.handler.streamed_request("terminate", "control-log", sa) + def redirect(self, sa): + """Redirect an IKE_SA. + + :param sa: the SA to redirect + :type sa: dict + """ + self.handler.request("redirect", sa) + def install(self, policy): """Install a trap, drop or bypass policy defined by a CHILD_SA config. |
