2019-05-09 01:00:49 -05:00
|
|
|
!
|
|
|
|
{% 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
|
2019-06-19 03:24:42 -05:00
|
|
|
agentx
|
2019-05-09 01:00:49 -05:00
|
|
|
! enable password {# {{ en_passwd }} TODO: param needed #}
|
|
|
|
{% endblock system_init %}
|
|
|
|
!
|
2019-07-08 19:32:20 -05:00
|
|
|
{% if DEVICE_METADATA['localhost']['type'] == "SpineChassisFrontendRouter" %}
|
|
|
|
{% include "bgpd.conf.spine_chassis_frontend_router.j2" %}
|
|
|
|
{% else%}
|
|
|
|
{% include "bgpd.conf.default.j2" %}
|
2019-05-09 01:00:49 -05:00
|
|
|
{% 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 %}
|
|
|
|
!
|
2019-06-12 03:09:31 -05:00
|
|
|
route-map set-next-hop-global-v6 permit 10
|
|
|
|
set ipv6 next-hop prefer-global
|
|
|
|
!
|