@@ -24,9 +24,9 @@ route-map FROM_BGP_SPEAKER_V4 permit 10
24
24
route-map TO_BGP_SPEAKER_V4 deny 10
25
25
!
26
26
{% if BGP_MONITORS is defined and BGP_MONITORS |length > 0 %}
27
- route-map FROM_BGPMON_V4 deny 10
27
+ route-map FROM_BGPMON deny 10
28
28
!
29
- route-map TO_BGPMON_V4 permit 10
29
+ route-map TO_BGPMON permit 10
30
30
!
31
31
{% endif %}
32
32
router bgp {{ DEVICE_METADATA['localhost'] ['bgp_asn'] }}
@@ -102,22 +102,25 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
102
102
{% endblock bgp_peers_with_range %}
103
103
{% block bgp_monitors %}
104
104
{% if BGP_MONITORS is defined and BGP_MONITORS |length > 0 %}
105
- neighbor BGPMON_V4 peer-group
106
- neighbor BGPMON_V4 activate
105
+ neighbor BGPMON peer-group
106
+ neighbor BGPMON activate
107
107
{% for (name , prefix ) in LOOPBACK_INTERFACE %}
108
108
{% if prefix | ipv 4 and name == 'Loopback0' %}
109
- neighbor BGPMON_V4 update-source {{ prefix | ip }}
109
+ neighbor BGPMON update-source {{ prefix | ip }}
110
110
{% endif %}
111
111
{% endfor %}
112
- neighbor BGPMON_V4 route-map FROM_BGPMON_V4 in
113
- neighbor BGPMON_V4 route-map TO_BGPMON_V4 out
114
- neighbor BGPMON_V4 send-community
115
- neighbor BGPMON_V4 maximum-prefix 1
112
+ neighbor BGPMON route-map FROM_BGPMON in
113
+ neighbor BGPMON route-map TO_BGPMON out
114
+ neighbor BGPMON send-community
115
+ neighbor BGPMON maximum-prefix 1
116
116
{% for neighbor_addr , bgp_session in BGP_MONITORS .items () %}
117
117
neighbor {{ neighbor_addr }} remote-as {{ DEVICE_METADATA['localhost'] ['bgp_asn'] }}
118
- neighbor {{ neighbor_addr }} peer-group BGPMON_V4
118
+ neighbor {{ neighbor_addr }} peer-group BGPMON
119
119
neighbor {{ neighbor_addr }} description {{ bgp_session['name'] }}
120
120
neighbor {{ neighbor_addr }} activate
121
+ address-family ipv6
122
+ neighbor {{ neighbor_addr }} activate
123
+ exit-address-family
121
124
{% endfor %}
122
125
{% endif %}
123
126
{% endblock bgp_monitors %}
0 commit comments