687c971a52
Calls to sonic-cfggen is CPU expensive. This PR reduces calls to sonic-cfggen to one call during startup when starting dhcp-relay service. singed-off-by: Tamer Ahmed <tamer.ahmed@microsoft.com>
6 lines
300 B
Django/Jinja
6 lines
300 B
Django/Jinja
{# Generate port name-alias map for isc-dhcp-relay to parse. Each line contains one #}
|
|
{# name-alias pair of the form "<name> <alias>" #}
|
|
{% for port, config in PORT.items() %}
|
|
{{- port }} {% if "alias" in config %}{{ config["alias"] }}{% else %}{{ port }}{% endif %} {{- "\n" -}}
|
|
{% endfor -%}
|