fix: update bgp peer port logic
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
2 files changed
+4
-8
No files matched your search
@@ -16,9 +16,7 @@ spec:
|
|||||||
#% for item in bootstrap_bgp.peers %#
|
#% for item in bootstrap_bgp.peers %#
|
||||||
- peerAddress: "#{ item }#/32"
|
- peerAddress: "#{ item }#/32"
|
||||||
peerASN: #{ bootstrap_bgp.peer_asn }#
|
peerASN: #{ bootstrap_bgp.peer_asn }#
|
||||||
#% if bootstrap_bgp.peer_port %#
|
peerPort: #{ bootstrap_bgp.peer_port | default(179) }#
|
||||||
peerPort: #{ bootstrap_bgp.peer_port }#
|
|
||||||
#% endif %#
|
|
||||||
#% endfor %#
|
#% endfor %#
|
||||||
#% else %#
|
#% else %#
|
||||||
#% if bootstrap_node_default_gateway %#
|
#% if bootstrap_node_default_gateway %#
|
||||||
|
|||||||
+3
-5
@@ -83,11 +83,9 @@ bootstrap_bgp:
|
|||||||
peers: []
|
peers: []
|
||||||
# (Required) Set the BGP Autonomous System Number for the router(s) and nodes.
|
# (Required) Set the BGP Autonomous System Number for the router(s) and nodes.
|
||||||
# If these match, iBGP will be used. If not, eBGP will be used.
|
# If these match, iBGP will be used. If not, eBGP will be used.
|
||||||
peer_asn: "" # Router(s) AS
|
peer_asn: "" # Router(s) AS
|
||||||
local_asn: "" # Node(s) AS
|
local_asn: "" # Node(s) AS
|
||||||
# (Optional) If using a non-default BGP port.
|
peer_port: 179 # BGP Port - default is TCP port 179
|
||||||
# Default is 179 (tcp).
|
|
||||||
# peer_port: "" # BGP Port
|
|
||||||
# (Required) The advertised CIDR for the cluster, this must NOT overlap with any
|
# (Required) The advertised CIDR for the cluster, this must NOT overlap with any
|
||||||
# existing networks and is usually a /16 (64K IPs).
|
# existing networks and is usually a /16 (64K IPs).
|
||||||
# If you want to use IPv6 check the advanced flags below
|
# If you want to use IPv6 check the advanced flags below
|
||||||
|
|||||||
Reference in new issue
Block a user