231d309b69
* Generate default VRF table for router interfaces * Updated jinja2 template to have prefix filter
38 lines
1.0 KiB
Django/Jinja
38 lines
1.0 KiB
Django/Jinja
{% 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 %}
|
|
{% for (name, prefix) in VLAN_INTERFACE|pfx_filter %}
|
|
{# If this VLAN has an IPv6 address... #}
|
|
{% if prefix | ipv6 %}
|
|
interface {{ name }}
|
|
{
|
|
IgnoreIfMissing on;
|
|
AdvSendAdvert on;
|
|
MinRtrAdvInterval 200;
|
|
MaxRtrAdvInterval 600;
|
|
AdvManagedFlag on;
|
|
AdvOtherConfigFlag off;
|
|
AdvLinkMTU 9100;
|
|
AdvHomeAgentFlag off;
|
|
prefix {{ prefix | network }}/{{ prefix | prefixlen }} {
|
|
AdvOnLink on;
|
|
AdvAutonomous off;
|
|
AdvRouterAddr off;
|
|
AdvValidLifetime infinity;
|
|
AdvPreferredLifetime infinity;
|
|
};
|
|
};
|
|
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% endif %}
|