34 lines
907 B
Django/Jinja
34 lines
907 B
Django/Jinja
!
|
|
{% block banner %}
|
|
! =========== Managed by sonic-cfggen DO NOT edit manually! ====================
|
|
! generated by templates/quagga/bgpd.conf.j2 with config DB data
|
|
! file: bgpd.conf
|
|
!
|
|
{% endblock banner %}
|
|
!
|
|
{% block system_init %}
|
|
hostname {{ DEVICE_METADATA['localhost']['hostname'] }}
|
|
password zebra
|
|
log syslog informational
|
|
log facility local4
|
|
agentx
|
|
! enable password {# {{ en_passwd }} TODO: param needed #}
|
|
{% endblock system_init %}
|
|
!
|
|
{% if DEVICE_METADATA['localhost']['type'] == "SpineChassisFrontendRouter" %}
|
|
{% include "bgpd.conf.spine_chassis_frontend_router.j2" %}
|
|
{% else%}
|
|
{% include "bgpd.conf.default.j2" %}
|
|
{% endif %}
|
|
!
|
|
{% if DEVICE_METADATA['localhost'].has_key('bgp_asn') %}
|
|
maximum-paths 64
|
|
!
|
|
route-map ISOLATE permit 10
|
|
set as-path prepend {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
|
|
{% endif %}
|
|
!
|
|
route-map set-next-hop-global-v6 permit 10
|
|
set ipv6 next-hop prefer-global
|
|
!
|