|
8 | 8 | or (bgp_session['holdtime'] is defined and bgp_session['holdtime'] | int != 180) %}
|
9 | 9 | neighbor {{ neighbor_addr }} timers {{ bgp_session['keepalive'] }} {{ bgp_session['holdtime'] }}
|
10 | 10 | {% endif %}
|
| 11 | +! |
11 | 12 | {% if bgp_session.has_key('admin_status') and bgp_session['admin_status'] == 'down' or not bgp_session.has_key('admin_status') and CONFIG_DB__DEVICE_METADATA['localhost'].has_key('default_bgp_status') and CONFIG_DB__DEVICE_METADATA['localhost']['default_bgp_status'] == 'down' %}
|
12 | 13 | neighbor {{ neighbor_addr }} shutdown
|
13 | 14 | {% endif %}
|
| 15 | +! |
14 | 16 | {% if neighbor_addr | ipv4 %}
|
15 | 17 | address-family ipv4
|
16 | 18 | neighbor {{ neighbor_addr }} peer-group PEER_V4
|
| 19 | +{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'InternalBackend' %} |
| 20 | + neighbor {{ neighbor_addr }} route-map FROM_BGP_PEER_V4_INT in |
| 21 | +{% endif %} |
17 | 22 | {% elif neighbor_addr | ipv6 %}
|
18 | 23 | address-family ipv6
|
19 |
| -{% if bgp_session['asn'] != bgp_asn %} |
20 |
| - neighbor {{ neighbor_addr }} route-map set-next-hop-global-v6 in |
21 |
| -{% endif %} |
22 | 24 | neighbor {{ neighbor_addr }} peer-group PEER_V6
|
| 25 | +{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'InternalBackend' %} |
| 26 | + neighbor {{ neighbor_addr }} route-map FROM_BGP_PEER_V6_INT in |
| 27 | +{% endif %} |
23 | 28 | {% endif %}
|
| 29 | +! |
24 | 30 | {% if bgp_session['rrclient'] | int != 0 %}
|
25 | 31 | neighbor {{ neighbor_addr }} route-reflector-client
|
26 | 32 | {% endif %}
|
| 33 | +! |
27 | 34 | {% if bgp_session['nhopself'] | int != 0 %}
|
28 | 35 | neighbor {{ neighbor_addr }} next-hop-self
|
29 | 36 | {% endif %}
|
30 | 37 | !
|
31 |
| -{% if CONFIG_DB__DEVICE_METADATA['localhost']['type'] == 'InternalBackend' %} |
32 |
| - neighbor {{ neighbor_addr }} route-map OVERRIDE_ORIGINATOR_ID in |
33 |
| -{% endif %} |
34 |
| -! |
35 |
| -{% if bgp_session["asn"] == bgp_asn |
36 |
| - and CONFIG_DB__DEVICE_METADATA['localhost']['type'] == "SpineChassisFrontendRouter" %} |
| 38 | +{% if bgp_session["asn"] == bgp_asn and CONFIG_DB__DEVICE_METADATA['localhost']['type'] == "SpineChassisFrontendRouter" %} |
37 | 39 | address-family l2vpn evpn
|
38 | 40 | neighbor {{ neighbor_addr }} activate
|
39 | 41 | advertise-all-vni
|
|
0 commit comments