vici: Add redirect command

This allows redirecting IKE_SAs by multiple different selectors, if none
are given all SAs are redirected.
This commit is contained in:
Tobias Brunner
2016-03-04 16:02:59 +01:00
parent 0d424d2107
commit 43b46b26ea
5 changed files with 150 additions and 0 deletions
@@ -504,6 +504,12 @@ module Vici
"control-log", &block))
end
##
# Redirect an IKE_SA.
def redirect(options)
check_success(@transp.request("redirect", Message.new(options)))
end
##
# Install a shunt/route policy.
def install(policy)