Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion config_example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -253,11 +253,14 @@ set -x
# BGPBasedVIPManagement gate (DevPreviewNoUpgrade). The local ASN defaults
# to BGP_CLUSTER_ASN, the peer ASN to BGP_TOR_ASN, and the peer address to
# the ToR address on the external subnet; override the peer address with
# BGP_VIP_PEER_ADDRESS if your topology differs.
# BGP_VIP_PEER_ADDRESS if your topology differs. On dual-stack deployments
# a second peer is rendered for the ToR's IPv6 address on the external v6
# subnet (override with BGP_VIP_PEER_ADDRESS_V6).
# Default is unset.
#
#export BGP_VIP_MANAGEMENT=true
#export BGP_VIP_PEER_ADDRESS=
#export BGP_VIP_PEER_ADDRESS_V6=
#
# FRR container image:
#export BGP_TOR_IMAGE=quay.io/frrouting/frr:9.1.0
Expand Down
11 changes: 10 additions & 1 deletion ocp_install_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ EOF

function bgp_vip_config() {
if [[ "${BGP_VIP_MANAGEMENT:-false}" == "true" ]]; then
local peer_address
local peer_address peer_address_v6
peer_address="${BGP_VIP_PEER_ADDRESS:-$(nth_ip "${EXTERNAL_SUBNET_V4}" 1)}"
cat <<EOF
bgpVIPConfig:
Expand All @@ -209,6 +209,15 @@ cat <<EOF
- peerAddress: ${peer_address}
peerASN: ${BGP_TOR_ASN:-64513}
EOF
# dual-stack: peer with the ToR over IPv6 as well, so the
# secondary-family VIPs have a same-family BGP session
if [[ -n "${EXTERNAL_SUBNET_V6:-}" ]]; then
peer_address_v6="${BGP_VIP_PEER_ADDRESS_V6:-$(nth_ip "${EXTERNAL_SUBNET_V6}" 1)}"
cat <<EOF
- peerAddress: ${peer_address_v6}
peerASN: ${BGP_TOR_ASN:-64513}
EOF
fi
fi
}

Expand Down