Skip to content

Commit

Permalink
Set BGP remote as
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Sep 22, 2024
1 parent 4010e31 commit 8aa02be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ubiquiti-edge-router.j2
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ set protocols static interface-route {{ pfx.prefix }} next-hop-interface {{ intf
{%- set asn = sess.local_as.asn %}
{%- set is_v6 = sess.local_address.address | ipaddr(version=6) %}
set protocols bgp {{ asn }} neighbor {{ neighbor }} description {{ sess.description | slugify(**description_slugifier) }}
set protocols bgp {{ asn }} neighbor {{ neighbor }} remote-as {{ sess.remote_as.asn }}

{%- if sess.peer_group %}
set protocols bgp {{ asn }} neighbor {{ neighbor }} peer-group {{ sess.peer_group.name }}
{%- endif %}
Expand Down

0 comments on commit 8aa02be

Please sign in to comment.