vici: List namespace/peer-cfg name with policies and allow filtering

The two names are also transmitted in separate keys.
This commit is contained in:
Tobias Brunner
2017-02-16 19:24:07 +01:00
parent ebb517581f
commit b657740e16
2 changed files with 33 additions and 13 deletions
+4 -1
View File
@@ -354,6 +354,7 @@ _list-policy_ events.
pass = <set to yes to list bypass policies>
trap = <set to yes to list trap policies>
child = <filter by CHILD_SA configuration name>
ike = <filter by IKE_SA configuration name>
} => {
# completes after streaming list-sa events
}
@@ -775,7 +776,9 @@ The _list-policy_ event is issued to stream installed policies during an active
_list-policies_ command.
{
<child-sa-config-name> = {
<ike-sa-config-name/child-sa-config-name> = {
child = <CHILD_SA configuration name>
ike = <IKE_SA configuration name or namespace, if available>
mode = <policy mode, tunnel|transport|pass|drop>
local-ts = [
<list of local traffic selectors>