11 lines
305 B
Plaintext
11 lines
305 B
Plaintext
|
!
|
||
|
{% 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 %}
|
||
|
!
|