Skip to content

Commit

Permalink
Omit description on BGP if empty
Browse files Browse the repository at this point in the history
  • Loading branch information
mraerino committed Sep 22, 2024
1 parent f7b255d commit b4a672a
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 @@ -97,7 +97,9 @@ set protocols static interface-route {{ pfx.prefix }} next-hop-interface {{ intf
{%- set neighbor = sess.remote_address.address.ip %}
{%- set asn = sess.local_as.asn %}
{%- set is_v6 = sess.local_address.address.ip.version == 6 %}
{%- if sess.description != '' %}
set protocols bgp {{ asn }} neighbor {{ neighbor }} description {{ sess.description | slugify(**description_slugifier) }}
{%- endif %}
set protocols bgp {{ asn }} neighbor {{ neighbor }} remote-as {{ sess.remote_as.asn }}

{%- if sess.peer_group %}
Expand Down

0 comments on commit b4a672a

Please sign in to comment.