1 ##############################################################################
2 # Copyright (c) 2019 Mirantis Inc. and others.
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 ##############################################################################
8 {% from "opendaylight/map.jinja" import server with context %}
10 /opt/opendaylight/etc/jetty.xml:
12 - source: salt://opendaylight/files/jetty.xml
17 /opt/opendaylight/bin/setenv:
19 - source: salt://opendaylight/files/setenv.shell
25 {%- set features = [] %}
26 {%- for f in server.karaf_features.itervalues() %}
27 {%- do features.extend(f) %}
30 /opt/opendaylight/etc/org.apache.karaf.features.cfg:
33 featuresBoot: {{ features|join(',') }}
35 /opt/opendaylight/etc/org.ops4j.pax.web.cfg:
38 org.ops4j.pax.web.listening.addresses: {{ server.odl_bind_ip }}
39 org.osgi.service.http.port: {{ server.odl_rest_port }}
41 {%- if not server.pax_logging_enabled|d(false) %}
43 set pax_logging_opts = [
44 'log4j2.rootLogger.appenderRef.PaxOsgi.ref',
45 'log4j2.appender.osgi.type',
46 'log4j2.appender.osgi.name',
47 'log4j2.appender.osgi.filter'
51 {%- for opt in pax_logging_opts %}
52 pax.logging.cfg.{{ opt }}:
54 - name: /opt/opendaylight/etc/org.ops4j.pax.logging.cfg
55 - regex: ^{{ opt }}\s*=
60 /opt/opendaylight/etc/org.opendaylight.openflowplugin.cfg:
66 is-statistics-polling-on: {{ server.stats_polling_enabled }}
68 {%- if server.get('router_enabled', false) %}
69 /opt/opendaylight/etc/custom.properties:
72 ovsdb.l3.fwd.enabled: 'yes'
76 {%- if server.netvirt_nat_mode is defined %}
77 /opt/opendaylight/etc/opendaylight/datastore/initial/config/netvirt-natservice-config.xml:
79 - source: salt://opendaylight/files/netvirt-natservice-config.xml
86 {%- if server.dhcp.enabled %}
87 /opt/opendaylight/etc/opendaylight/datastore/initial/config/netvirt-dhcpservice-config.xml:
89 - source: salt://opendaylight/files/netvirt-dhcpservice-config.xml