Skip to content

Commit b5f4ee1

Browse files
committed
fix(AdvertiseHostname): Update peer.tmpl to fix advertising hostname to peers
1 parent 9affa2a commit b5f4ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/embed/templates/peer.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ protocol bgp {{ UniqueProtocolName $peer.ProtocolName $peerName $af $peer.ASN $p
5656
{{ if not (BoolDeref $peer.InterpretCommunities) }}interpret communities off;{{ end }}
5757
{{ if IntDeref $peer.Confederation }}confederation {{ IntDeref $peer.Confederation }};{{ end }}
5858
{{ if IntDeref $peer.DefaultLocalPref }}default bgp_local_pref {{ IntDeref $peer.DefaultLocalPref }};{{ end }}
59+
{{ if BoolDeref $peer.AdvertiseHostname }}advertise hostname on;{{ end }}
5960
{{ StrDeref $peer.SessionGlobal }}
6061
{{ $protocols := MakeSlice }}
6162
{{ if BoolDeref $peer.MPUnicast46 }}
@@ -81,7 +82,6 @@ protocol bgp {{ UniqueProtocolName $peer.ProtocolName $peerName $af $peer.ASN $p
8182
{{ if BoolDeref $peer.NextHopSelfIBGP }}next hop self ibgp;{{ end }}
8283
{{ if BoolDeref $peer.AddPathTx }}add paths tx;{{ end }}
8384
{{ if BoolDeref $peer.AddPathRx }}add paths rx;{{ end }}
84-
{{ if BoolDeref $peer.AdvertiseHostname }}advertise hostname on;{{ end }}
8585
{{ if BoolDeref $peer.DisableAfterError }}disable after error on;{{ end }}
8686
import filter {
8787
{{ if $global.NoAccept }}reject; # no-accept: true{{ end }}

0 commit comments

Comments
 (0)