Skip to content
Snippets Groups Projects
Commit 7c4ba4a8 authored by Aleksandr Kurbatov's avatar Aleksandr Kurbatov
Browse files

Merge branch 'fix/bgp-neighbor-fix' into 'develop'

Add local address in BGP neighbor template

See merge request !211
parents cc3a5c50 9573cf1c
No related branches found
No related tags found
1 merge request!211Add local address in BGP neighbor template
Pipeline #91413 passed
...@@ -26,7 +26,19 @@ ...@@ -26,7 +26,19 @@
</auto-bind-tunnel> </auto-bind-tunnel>
</mpls> </mpls>
</bgp-ipvpn> </bgp-ipvpn>
{% if vprn.aggregates is defined %}
<aggregates>
{% for ag in vprn.aggregates %}
<aggregate>
<ip-prefix>{{ ag.ip_prefix }}</ip-prefix>
<community>{{ ag.community }}</community>
<discard-component-communities>{{ ag.dcc }}</discard-component-communities>
</aggregate>
{% endfor %}
</aggregates>
{% endif %}
<bgp> <bgp>
<description>{{ vprn.name }}</description>
{% with bgp_base_obj=vprn.bgp, bgp_context='vprn' %} {% with bgp_base_obj=vprn.bgp, bgp_context='vprn' %}
{% include 'router/bgp_base.j2' %} {% include 'router/bgp_base.j2' %}
{% endwith %} {% endwith %}
......
...@@ -5,11 +5,12 @@ ...@@ -5,11 +5,12 @@
{% if neighbor.bfd_enabled %} {% if neighbor.bfd_enabled %}
<bfd-liveness>true</bfd-liveness> <bfd-liveness>true</bfd-liveness>
{% endif %} {% endif %}
{% if neighbor.ip_type == 'ipv4' %} {% if neighbor.ip_type == 'ipv4' %}
<local-address>{{ ipv4_local_addr }}</local-address>
<description>-- Peering with {{ partner_name | upper }} --</description> <description>-- Peering with {{ partner_name | upper }} --</description>
<group>{{ bgp.group.ipv4 }}</group> <group>{{ bgp.group.ipv4 }}</group>
{% elif neighbor.ip_type == 'ipv6' %} {% elif neighbor.ip_type == 'ipv6' %}
<local-address>{{ ipv6_local_addr }}</local-address>
<description>-- IPv6 Peering with {{ partner_name | upper }} --</description> <description>-- IPv6 Peering with {{ partner_name | upper }} --</description>
<group>{{ bgp.group.ipv6 }}</group> <group>{{ bgp.group.ipv6 }}</group>
{% endif %} {% endif %}
......
...@@ -3,3 +3,5 @@ ...@@ -3,3 +3,5 @@
is_standalone_run: false is_standalone_run: false
bgp_obj: "{{ ap.sbp.bgp_session_list }}" bgp_obj: "{{ ap.sbp.bgp_session_list }}"
ipv4_local_addr: "{{ ap.sbp.ipv4_address }}"
ipv6_local_addr: "{{ ap.sbp.ipv6_address }}"
...@@ -19,6 +19,14 @@ ...@@ -19,6 +19,14 @@
<description>SRV_L3VPN CUSTOMER {{ partner_name }} {{ '#'+ap.custom_service_name if ap.custom_service_name is string }} ${{ ap.sbp.gs_id }} | ASN{{ partner.asn }} | </description> <description>SRV_L3VPN CUSTOMER {{ partner_name }} {{ '#'+ap.custom_service_name if ap.custom_service_name is string }} ${{ ap.sbp.gs_id }} | ASN{{ partner.asn }} | </description>
{% endif %} {% endif %}
<ip-mtu>{{ sbp_params.ip_mtu }}</ip-mtu> <ip-mtu>{{ sbp_params.ip_mtu }}</ip-mtu>
<cflowd-parameters>
<sampling>
<sampling-type>unicast</sampling-type>
<type>interface</type>
<direction>ingress-only</direction>
<sample-profile>1</sample-profile>
</sampling>
</cflowd-parameters>
<sap> <sap>
{% if ap.sbp.is_tagged %} {% if ap.sbp.is_tagged %}
<sap-id>{{ lag_name }}:{{ ap.sbp.vlan_id }}</sap-id> <sap-id>{{ lag_name }}:{{ ap.sbp.vlan_id }}</sap-id>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment