2020-10-28 18:41:27 -05:00
|
|
|
!
|
|
|
|
! template: bgpd/templates/internal/policies.conf.j2
|
|
|
|
!
|
|
|
|
!
|
2021-02-26 19:05:15 -06:00
|
|
|
{% from "common/functions.conf.j2" import get_ipv4_loopback_address %}
|
2020-10-28 18:41:27 -05:00
|
|
|
!
|
|
|
|
route-map FROM_BGP_INTERNAL_PEER_V4 permit 100
|
|
|
|
!
|
|
|
|
route-map TO_BGP_INTERNAL_PEER_V4 permit 100
|
|
|
|
!
|
|
|
|
!
|
|
|
|
route-map FROM_BGP_INTERNAL_PEER_V6 permit 1
|
|
|
|
set ipv6 next-hop prefer-global
|
2021-02-26 19:05:15 -06:00
|
|
|
on-match next
|
2020-10-28 18:41:27 -05:00
|
|
|
!
|
|
|
|
route-map FROM_BGP_INTERNAL_PEER_V6 permit 100
|
|
|
|
!
|
|
|
|
route-map TO_BGP_INTERNAL_PEER_V6 permit 100
|
|
|
|
!
|
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' %}
|
|
|
|
route-map FROM_BGP_INTERNAL_PEER_V4 permit 2
|
2021-02-26 19:05:15 -06:00
|
|
|
set originator-id {{ get_ipv4_loopback_address(CONFIG_DB__LOOPBACK_INTERFACE, "Loopback4096") | ip }}
|
2020-10-28 18:41:27 -05:00
|
|
|
!
|
|
|
|
route-map FROM_BGP_INTERNAL_PEER_V6 permit 2
|
2021-02-26 19:05:15 -06:00
|
|
|
set originator-id {{ get_ipv4_loopback_address(CONFIG_DB__LOOPBACK_INTERFACE, "Loopback4096") | ip }}
|
2020-10-28 18:41:27 -05:00
|
|
|
{% endif %}
|
|
|
|
!
|
|
|
|
! end of template: bgpd/templates/internal/policies.conf.j2
|
|
|
|
!
|