2017-01-19 22:56:26 -06:00
|
|
|
!
|
|
|
|
{% block banner %}
|
|
|
|
! =========== Managed by sonic-cfggen DO NOT edit manually! ====================
|
2017-09-12 16:13:27 -05:00
|
|
|
! generated by templates/quagga/zebra.conf.j2 using config DB data
|
2017-01-19 22:56:26 -06:00
|
|
|
! file: zebra.conf
|
|
|
|
!
|
|
|
|
{% endblock banner %}
|
|
|
|
!
|
|
|
|
{% block sys_init %}
|
2017-09-12 16:13:27 -05:00
|
|
|
hostname {{ DEVICE_METADATA['localhost']['hostname'] }}
|
2017-01-19 22:56:26 -06:00
|
|
|
password zebra
|
|
|
|
enable password zebra
|
|
|
|
{% endblock sys_init %}
|
|
|
|
!
|
|
|
|
{% block interfaces %}
|
|
|
|
! Enable link-detect (default disabled)
|
2017-09-12 16:13:27 -05:00
|
|
|
{% for (name, prefix) in INTERFACE %}
|
|
|
|
interface {{ name }}
|
2017-01-19 22:56:26 -06:00
|
|
|
link-detect
|
|
|
|
!
|
|
|
|
{% endfor %}
|
2017-09-12 16:13:27 -05:00
|
|
|
{% for pc in PORTCHANNEL %}
|
|
|
|
interface {{ pc }}
|
2017-03-17 18:48:13 -05:00
|
|
|
link-detect
|
|
|
|
!
|
|
|
|
{% endfor %}
|
2017-01-19 22:56:26 -06:00
|
|
|
{% endblock interfaces %}
|
|
|
|
!
|
|
|
|
{% block default_route %}
|
|
|
|
! set static default route to mgmt gateway as a backup to learned default
|
2017-09-12 16:13:27 -05:00
|
|
|
{% for (name, prefix) in MGMT_INTERFACE %}
|
|
|
|
{% if prefix | ipv4 %}
|
|
|
|
ip route 0.0.0.0/0 {{ MGMT_INTERFACE[(name, prefix)]['gwaddr'] }} 200
|
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2017-01-19 22:56:26 -06:00
|
|
|
{% endblock default_route %}
|
|
|
|
!
|
|
|
|
{% block logging %}
|
|
|
|
log syslog informational
|
|
|
|
log facility local4
|
|
|
|
{% endblock logging %}
|
|
|
|
!
|
|
|
|
|