fix: update bgp peer port logic

Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
Devin Buhl committed 2024-05-27 09:27:12 -04:00
1 parent cbe8b24c78
commit 0dfd4f5dd8
2 files changed
+2 -6

No files matched your search

@@ -16,9 +16,7 @@ spec:
#% for item in bootstrap_bgp.peers %#
- peerAddress: "#{ item }#/32"
peerASN: #{ bootstrap_bgp.peer_asn }#
#% if bootstrap_bgp.peer_port %#
peerPort: #{ bootstrap_bgp.peer_port }#
#% endif %#
peerPort: #{ bootstrap_bgp.peer_port | default(179) }#
#% endfor %#
#% else %#
#% if bootstrap_node_default_gateway %#
+1 -3
View File
@@ -85,9 +85,7 @@ bootstrap_bgp:
# If these match, iBGP will be used. If not, eBGP will be used.
peer_asn: "" # Router(s) AS
local_asn: "" # Node(s) AS
# (Optional) If using a non-default BGP port.
# Default is 179 (tcp).
# peer_port: "" # BGP Port
peer_port: 179 # BGP Port - default is TCP port 179
# (Required) The advertised CIDR for the cluster, this must NOT overlap with any
# existing networks and is usually a /16 (64K IPs).
# If you want to use IPv6 check the advanced flags below