Skip to content

Commit

Permalink
Updating sender loop detection and allow as in support (#19)
Browse files Browse the repository at this point in the history
* Adding sender loop detect and allow as in support in BGP

Co-authored-by: Dhanapal-Angamuthu <Dhanapal_Angamuthu@dell.com>
  • Loading branch information
Dhanapal-Angamuthu and Dhanapal-Angamuthu authored Apr 2, 2020
1 parent d18e36e commit 9a87e5a
Showing 1 changed file with 48 additions and 3 deletions.
51 changes: 48 additions & 3 deletions templates/dellos10_bgp.j2
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,51 @@ router bgp {{ bgp_vars.asn }}
inherit template {{ neighbor.peergroup }} inherit-type {{ neighbor.peergroup_type }}
{% endif %}
{% endif %}
{% if neighbor.send_community is defined and neighbor.send_community %}
{% for comm in neighbor.send_community %}
{% if comm.type is defined and comm.type %}
{% if comm.state is defined and comm.state == "absent" %}
no send-community {{ comm.type }}
{% else %}
send-community {{ comm.type }}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% if neighbor.address_family is defined and neighbor.address_family %}
{% for af in neighbor.address_family %}
{% if af.type is defined and af.type %}
{% if af.state is defined and af.state == "absent" %}
{% if af.type == "l2vpn" %}
no address-family {{ af.type }} evpn
{% else %}
no address-family {{ af.type }} unicast
{% endif %}
{% else %}
{% if af.type == "l2vpn" %}
address-family {{ af.type }} evpn
{% else %}
address-family {{ af.type }} unicast
{% endif %}
{% if af.activate is defined %}
{% if af.activate %}
activate
{% else %}
no activate
{% endif %}
{% endif %}
{% if af.allow_as_in is defined and af.allow_as_in %}
allowas-in {{ af.allow_as_in }}
{% endif %}
{% if af.sender_loop_detect is defined %}
{% if af.sender_loop_detect == "false" %}
no sender-side-loop-detection
{% endif %}
{% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endif %}
{% elif neighbor.type == "peergroup" %}
Expand Down Expand Up @@ -629,10 +674,10 @@ router bgp {{ bgp_vars.asn }}
{% endif %}
{% if neighbor.sender_loop_detect is defined %}
address-family ipv4 unicast
{% if neighbor.sender_loop_detect %}
sender-side-loop-detection
{% if neighbor.sender_loop_detect == "false" %}
no sender-side-loop-detection
{% else %}
no sender-side-loop-detection
sender-side-loop-detection
{% endif %}
{% endif %}

Expand Down

0 comments on commit 9a87e5a

Please sign in to comment.