2020-04-23 11:42:22 -05:00
|
|
|
!
|
|
|
|
! template: bgpd/templates/general/policies.conf.j2
|
|
|
|
!
|
|
|
|
!
|
|
|
|
!
|
|
|
|
route-map FROM_BGP_PEER_V4 permit 100
|
|
|
|
!
|
|
|
|
route-map TO_BGP_PEER_V4 permit 100
|
|
|
|
!
|
|
|
|
!
|
|
|
|
route-map FROM_BGP_PEER_V6 permit 1
|
|
|
|
set ipv6 next-hop prefer-global
|
|
|
|
!
|
|
|
|
route-map FROM_BGP_PEER_V6 permit 100
|
|
|
|
!
|
|
|
|
route-map TO_BGP_PEER_V6 permit 100
|
|
|
|
!
|
2020-05-06 16:58:02 -05:00
|
|
|
{% if CONFIG_DB__DEVICE_METADATA['localhost']['sub_role'] == 'BackEnd' %}
|
2020-04-23 11:42:22 -05:00
|
|
|
route-map FROM_BGP_PEER_V4_INT permit 2
|
|
|
|
set originator-id {{ loopback0_ipv4 | ip }}
|
|
|
|
!
|
|
|
|
route-map FROM_BGP_PEER_V6_INT permit 1
|
|
|
|
set ipv6 next-hop prefer-global
|
|
|
|
!
|
|
|
|
route-map FROM_BGP_PEER_V6_INT permit 2
|
|
|
|
set originator-id {{ loopback0_ipv4 | ip }}
|
|
|
|
{% endif %}
|
|
|
|
!
|
|
|
|
! end of template: bgpd/templates/general/policies.conf.j2
|
|
|
|
!
|