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

Add local address in BGP neigbor template

parent cc3a5c50
Branches
Tags
1 merge request!211Add local address in BGP neighbor template
Pipeline #91397 passed
......@@ -5,11 +5,12 @@
{% if neighbor.bfd_enabled %}
<bfd-liveness>true</bfd-liveness>
{% endif %}
{% if neighbor.ip_type == 'ipv4' %}
<local-address>{{ ipv4_local_addr }}</local-address>
<description>-- Peering with {{ partner_name | upper }} --</description>
<group>{{ bgp.group.ipv4 }}</group>
{% elif neighbor.ip_type == 'ipv6' %}
<local-address>{{ ipv6_local_addr }}</local-address>
<description>-- IPv6 Peering with {{ partner_name | upper }} --</description>
<group>{{ bgp.group.ipv6 }}</group>
{% endif %}
......
......@@ -3,3 +3,5 @@
is_standalone_run: false
bgp_obj: "{{ ap.sbp.bgp_session_list }}"
ipv4_local_addr: "{{ ap.sbp.ipv4_address }}"
ipv6_local_addr: "{{ ap.sbp.ipv6_address }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment