[bgp]: move allowas-in into ipv6 section to enable allowas-in for ipv6 (#741)

This commit is contained in:
lguohan 2017-06-22 19:50:24 -07:00 committed by GitHub
parent 5c852704fe
commit 4bdcac8e4f

View File

@ -57,11 +57,16 @@ router bgp {{ minigraph_bgp_asn }}
{% if bgp_admin_state and bgp_admin_state.has_key(bgp_session['addr']) and bgp_admin_state[bgp_session['addr']]==False or bgp_admin_state and not bgp_admin_state.has_key(bgp_session['addr']) and bgp_admin_state.has_key('all') and bgp_admin_state['all']==False %}
neighbor {{ bgp_session['addr'] }} shutdown
{% endif %}
{% if bgp_session['addr'] | ipv4 %}
{% if minigraph_devices[inventory_hostname]['type'] == 'ToRRouter' %}
neighbor {{ bgp_session['addr'] }} allowas-in 1
{% endif %}
{% endif %}
{% if bgp_session['addr'] | ipv6 %}
address-family ipv6
{% if minigraph_devices[inventory_hostname]['type'] == 'ToRRouter' %}
neighbor {{ bgp_session['addr'] }} allowas-in 1
{% endif %}
neighbor {{ bgp_session['addr'] }} activate
maximum-paths 64
exit-address-family