File tree 1 file changed +5
-0
lines changed
dockers/docker-fpm-quagga
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,11 @@ router bgp {{ DEVICE_METADATA['localhost']['bgp_asn'] }}
64
64
{% if bgp_session ['asn' ] | int != 0 %}
65
65
neighbor {{ neighbor_addr }} remote-as {{ bgp_session['asn'] }}
66
66
neighbor {{ neighbor_addr }} description {{ bgp_session['name'] }}
67
+ {# set the bgp neighbor timers if they have not default values #}
68
+ {% if (bgp_session ['keepalive' ] is defined and bgp_session ['keepalive' ] | int != 60)
69
+ or (bgp_session ['holdtime' ] is defined and bgp_session ['holdtime' ] | int != 180) %}
70
+ neighbor {{ neighbor_addr }} timers {{ bgp_session['keepalive'] }} {{ bgp_session['holdtime'] }}
71
+ {% endif %}
67
72
{% if bgp_session .has_key ('admin_status' ) and bgp_session ['admin_status' ] == 'down' or not bgp_session .has_key ('admin_status' ) and DEVICE_METADATA ['localhost' ].has_key ('default_bgp_status' ) and DEVICE_METADATA ['localhost' ]['default_bgp_status' ] == 'down' %}
68
73
neighbor {{ neighbor_addr }} shutdown
69
74
{% endif %}
You can’t perform that action at this time.
0 commit comments