6088bd59de
* Initial commit for BGP internal neighbor table support. > Add new template named "internal" for the internal BGP sessions > Add a new table in database "BGP_INTERNAL_NEIGHBOR" > The internal BGP sessions will be stored in this new table "BGP_INTERNAL_NEIGHBOR" * Changes in template generation tests with the introduction of internal neighbor template files.
28 lines
667 B
Django/Jinja
28 lines
667 B
Django/Jinja
!
|
|
! template: bgpd/templates/internal/policies.conf.j2
|
|
!
|
|
!
|
|
!
|
|
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
|
|
!
|
|
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
|
|
set originator-id {{ loopback0_ipv4 | ip }}
|
|
!
|
|
route-map FROM_BGP_INTERNAL_PEER_V6 permit 2
|
|
set originator-id {{ loopback0_ipv4 | ip }}
|
|
{% endif %}
|
|
!
|
|
! end of template: bgpd/templates/internal/policies.conf.j2
|
|
!
|