sonic-buildimage/dockers/docker-orchagent/ndppd.conf.j2
Lawrence Lee 8c344095a8
[docker-orchagent]: Add NDP Proxy Daemon (#5517)
* Install ndppd during image build, and copy config files to image
* Configure proxy settings based on config DB at container start
* Pipe ndppd output to logger inside container to log output in syslog
2020-10-05 08:48:13 -07:00

37 lines
1.3 KiB
Django/Jinja

{% block banner %}
# =========== Managed by sonic-cfggen -- DO NOT edit manually! ====================
# Generated by /usr/share/sonic/templates/ndppd.conf.j2 using config DB data
# File: /etc/ndppd.conf
#
{% endblock banner %}
# Config file for ndppd, the NDP Proxy Daemon
# See man page for ndppd.conf.5 for descriptions of all available options
{% if VLAN_INTERFACE and VLAN_INTERFACE|pfx_filter|length > 0%}
{# Get all VLAN interfaces that have proxy_arp enabled #}
{% set proxy_interfaces = {} %}
{% for intf in VLAN_INTERFACE %}
{% if "proxy_arp" in VLAN_INTERFACE[intf] and VLAN_INTERFACE[intf]["proxy_arp"] == "enabled" %}
{% set _x = proxy_interfaces.update({intf: []}) %}
{% endif %}
{% endfor -%}
{# Add each IPv6 prefix from each proxy_arp interface #}
{% for (intf, prefix) in VLAN_INTERFACE|pfx_filter %}
{% if intf in proxy_interfaces and prefix | ipv6 %}
{% set _x = proxy_interfaces[intf].append(prefix) %}
{% endif %}
{% endfor -%}
{% for intf, prefix_list in proxy_interfaces.items() %}
{% if prefix_list %}
proxy {{ intf }} {
{% for prefix in prefix_list %}
rule {{ prefix | network }}/{{ prefix | prefixlen }} {
static
}
{% endfor %}
}
{% endif %}
{% endfor %}
{% endif %}