@@ -24,9 +24,9 @@ route-map FROM_BGP_SPEAKER_V4 permit 10
2424route-map TO_BGP_SPEAKER_V4 deny 10
2525!
2626{% 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
2828!
29- route-map TO_BGPMON_V4 permit 10
29+ route-map TO_BGPMON permit 10
3030!
3131{% endif %}
3232router bgp {{ DEVICE_METADATA['localhost'] ['bgp_asn'] }}
@@ -102,22 +102,25 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
102102{% endblock bgp_peers_with_range %}
103103{% block bgp_monitors %}
104104{% 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
107107{% for (name , prefix ) in LOOPBACK_INTERFACE %}
108108{% if prefix | ipv 4 and name == 'Loopback0' %}
109- neighbor BGPMON_V4 update-source {{ prefix | ip }}
109+ neighbor BGPMON update-source {{ prefix | ip }}
110110{% endif %}
111111{% 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
116116{% for neighbor_addr , bgp_session in BGP_MONITORS .items () %}
117117 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
119119 neighbor {{ neighbor_addr }} description {{ bgp_session['name'] }}
120120 neighbor {{ neighbor_addr }} activate
121+ address-family ipv6
122+ neighbor {{ neighbor_addr }} activate
123+ exit-address-family
121124{% endfor %}
122125{% endif %}
123126{% endblock bgp_monitors %}
0 commit comments