sonic-buildimage/dockers/docker-fpm-frr/frr/staticd/staticd.default_route.conf.j2

11 lines
305 B
Plaintext
Raw Normal View History

!
{% block default_route %}
! set static default route to mgmt gateway as a backup to learned default
{% for (name, prefix) in MGMT_INTERFACE|pfx_filter %}
{% if prefix | ipv4 %}
ip route 0.0.0.0/0 {{ MGMT_INTERFACE[(name, prefix)]['gwaddr'] }} 200
{% endif %}
{% endfor %}
{% endblock default_route %}
!