[docker-fpm]: T0 devices receive routes containing one occurrence of their own ASN (#271)

This commit is contained in:
Joe LeVeque 2017-02-07 00:28:30 -08:00 committed by Shuotian Cheng
parent 8901112bf6
commit 522585aadf

View File

@ -46,6 +46,9 @@ router bgp {{ minigraph_bgp_asn }}
{% if bgp_session['asn'] != 0 %}
neighbor {{ bgp_session['addr'] }} remote-as {{ bgp_session['asn'] }}
neighbor {{ bgp_session['addr'] }} description {{ bgp_session['name'] }}
{% if minigraph_devices[inventory_hostname]['type'] == 'ToRRouter' %}
neighbor {{ bgp_session['addr'] }} allowas-in 1
{% endif %}
{% if bgp_session['addr'] | ipv6 %}
address-family ipv6
neighbor {{ bgp_session['addr'] }} activate