Skip to content

Commit

Permalink
fix(AdvertiseHostname): Update peer.tmpl to fix advertising hostname …
Browse files Browse the repository at this point in the history
…to peers
  • Loading branch information
bonzi committed Nov 14, 2024
1 parent 9affa2a commit b5f4ee1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/embed/templates/peer.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ protocol bgp {{ UniqueProtocolName $peer.ProtocolName $peerName $af $peer.ASN $p
{{ if not (BoolDeref $peer.InterpretCommunities) }}interpret communities off;{{ end }}
{{ if IntDeref $peer.Confederation }}confederation {{ IntDeref $peer.Confederation }};{{ end }}
{{ if IntDeref $peer.DefaultLocalPref }}default bgp_local_pref {{ IntDeref $peer.DefaultLocalPref }};{{ end }}
{{ if BoolDeref $peer.AdvertiseHostname }}advertise hostname on;{{ end }}
{{ StrDeref $peer.SessionGlobal }}
{{ $protocols := MakeSlice }}
{{ if BoolDeref $peer.MPUnicast46 }}
Expand All @@ -81,7 +82,6 @@ protocol bgp {{ UniqueProtocolName $peer.ProtocolName $peerName $af $peer.ASN $p
{{ if BoolDeref $peer.NextHopSelfIBGP }}next hop self ibgp;{{ end }}
{{ if BoolDeref $peer.AddPathTx }}add paths tx;{{ end }}
{{ if BoolDeref $peer.AddPathRx }}add paths rx;{{ end }}
{{ if BoolDeref $peer.AdvertiseHostname }}advertise hostname on;{{ end }}
{{ if BoolDeref $peer.DisableAfterError }}disable after error on;{{ end }}
import filter {
{{ if $global.NoAccept }}reject; # no-accept: true{{ end }}
Expand Down

0 comments on commit b5f4ee1

Please sign in to comment.