2017-11-14 16:40:15 -06:00
|
|
|
{% block banner %}
|
|
|
|
# =========== Managed by sonic-cfggen -- DO NOT edit manually! ====================
|
|
|
|
# Generated by /usr/share/sonic/templates/radvd.conf.j2 using config DB data
|
|
|
|
# File: /etc/radvd.conf
|
|
|
|
#
|
|
|
|
{% endblock banner %}
|
|
|
|
# Config file for radvd, the router advertisement daemon
|
|
|
|
# See man page for radvd.conf for descriptions of all available options
|
|
|
|
#
|
|
|
|
|
|
|
|
{# If our configuration has VLAN interfaces... #}
|
|
|
|
{% if VLAN_INTERFACE %}
|
2022-02-16 16:17:26 -06:00
|
|
|
{% set vlan_list = dict() %}
|
|
|
|
{% for (name,prefix) in VLAN_INTERFACE|pfx_filter %}
|
|
|
|
{% if name is not in vlan_list and prefix | ipv6 %}
|
|
|
|
{% set prefix_list = [] %}
|
|
|
|
{% set _ = vlan_list.update({name: prefix_list}) %}
|
|
|
|
{% endif %}
|
2017-11-14 16:40:15 -06:00
|
|
|
{% if prefix | ipv6 %}
|
2022-02-16 16:17:26 -06:00
|
|
|
{# If our configuration has VLAN interfaces... #}
|
|
|
|
{% set prefix_list = vlan_list.get(name) %}
|
|
|
|
{% set _ = prefix_list.append(prefix) %}
|
|
|
|
{% set _ = vlan_list.update({name: prefix_list}) %}
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
|
|
|
{% endif %}
|
|
|
|
{% for name, prefixes in vlan_list.items() %}
|
2017-11-14 16:40:15 -06:00
|
|
|
interface {{ name }}
|
|
|
|
{
|
|
|
|
IgnoreIfMissing on;
|
|
|
|
AdvSendAdvert on;
|
2021-10-01 17:00:16 -05:00
|
|
|
MinRtrAdvInterval 60;
|
|
|
|
MaxRtrAdvInterval 180;
|
2017-11-14 16:40:15 -06:00
|
|
|
AdvManagedFlag on;
|
|
|
|
AdvOtherConfigFlag off;
|
|
|
|
AdvLinkMTU 9100;
|
|
|
|
AdvHomeAgentFlag off;
|
2022-02-16 16:17:26 -06:00
|
|
|
{% for prefix in prefixes %}
|
2017-11-14 16:40:15 -06:00
|
|
|
prefix {{ prefix | network }}/{{ prefix | prefixlen }} {
|
|
|
|
AdvOnLink on;
|
|
|
|
AdvAutonomous off;
|
|
|
|
AdvRouterAddr off;
|
|
|
|
AdvValidLifetime infinity;
|
|
|
|
AdvPreferredLifetime infinity;
|
|
|
|
};
|
2022-02-16 16:17:26 -06:00
|
|
|
{% endfor %}
|
2017-11-14 16:40:15 -06:00
|
|
|
};
|
|
|
|
|
|
|
|
{% endfor %}
|