Skip to content

Commit

Permalink
Fix peer address of BGP neighbors (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino authored Sep 9, 2024
1 parent c7c0a1e commit befbfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core-router.j2
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ set protocols static interface-route {{ pfx.prefix }} next-hop-interface {{ intf

{# BGP sessions #}
{%- for sess in netbox_bgp.BGPSession.objects.filter(device_id=device.id) %}
set protocols bgp {{ sess.local_as.asn }} neighbor {{ sess.remote_address.address }}
set protocols bgp {{ sess.local_as.asn }} neighbor {{ sess.remote_address.address | ipaddr('address') }}
{%- endfor %}

0 comments on commit befbfcb

Please sign in to comment.