summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/ipsec.conf.tmpl
blob: 1cb531e7645eea47cf378c463d6be6c943882b80 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Created by VyOS - manual changes will be overwritten

config setup
{% set charondebug = '' %}
{% if log is defined and log.subsystem is defined and log.subsystem is not none %}
{%   set subsystem = log.subsystem %}
{%   if 'any' in log.subsystem %}
{%     set subsystem = ['dmn', 'mgr', 'ike', 'chd','job', 'cfg', 'knl', 'net', 'asn',
                        'enc', 'lib', 'esp', 'tls', 'tnc', 'imc', 'imv', 'pts'] %}
{%   endif %}
{%   set charondebug = subsystem | join (' ' ~ log.level ~ ', ') ~ ' ' ~ log.level %}
{% endif %}
    charondebug = "{{ charondebug }}"
    uniqueids = {{ "no" if disable_uniqreqids is defined else "yes" }}

{%  if include_ipsec_conf is defined %}
include {{ include_ipsec_conf }}
{%  endif %}