Skip to content

Commit

Permalink
Merge pull request #257 from AS207960/main
Browse files Browse the repository at this point in the history
fix(AdvertiseHostname): Update peer.tmpl to fix advertising hostname
  • Loading branch information
natesales authored Jan 15, 2025
2 parents c92c161 + b5f4ee1 commit b11cd26
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 b11cd26

Please sign in to comment.