@@ -161,10 +161,10 @@ EOF
161161 pip install -r dev-env/requirements.txt
162162
163163 local ip_family ipv6_network
164- if [ "$KIND_IPV4_SUPPORT " == true ] && [ "$KIND_IPV6_SUPPORT " == true ]; then
164+ if [ "$PLATFORM_IPV4_SUPPORT " == true ] && [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
165165 ip_family="dual"
166166 ipv6_network="--ipv6 --subnet=${METALLB_CLIENT_NET_SUBNET_IPV6}"
167- elif [ "$KIND_IPV6_SUPPORT " == true ]; then
167+ elif [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
168168 ip_family="ipv6"
169169 ipv6_network="--ipv6 --subnet=${METALLB_CLIENT_NET_SUBNET_IPV6}"
170170 else
177177 docker network rm -f clientnet
178178 docker network create --subnet="${METALLB_CLIENT_NET_SUBNET_IPV4}" ${ipv6_network} --driver bridge clientnet
179179 docker network connect clientnet frr
180- if [ "$KIND_IPV6_SUPPORT " == true ]; then
180+ if [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
181181 # Enable IPv6 forwarding in FRR
182182 docker exec frr sysctl -w net.ipv6.conf.all.forwarding=1
183183 fi
@@ -218,21 +218,21 @@ EOF
218218
219219 KIND_NODES=$(kind_get_nodes)
220220 for n in ${KIND_NODES}; do
221- if [ "$KIND_IPV4_SUPPORT " == true ]; then
221+ if [ "$PLATFORM_IPV4_SUPPORT " == true ]; then
222222 docker exec "${n}" ip route add "${client_subnets_v4}" via "${kind_network_v4}"
223223 fi
224- if [ "$KIND_IPV6_SUPPORT " == true ]; then
224+ if [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
225225 docker exec "${n}" ip -6 route add "${client_subnets_v6}" via "${kind_network_v6}"
226226 fi
227227 done
228228
229229 # for now, we only run one test with metalLB load balancer for which this
230230 # one svcVIP (192.168.10.0/fc00:f853:ccd:e799::) is more than enough since at a time we will only
231231 # have one load balancer service
232- if [ "$KIND_IPV4_SUPPORT " == true ]; then
232+ if [ "$PLATFORM_IPV4_SUPPORT " == true ]; then
233233 docker exec lbclient ip route add 192.168.10.0 via "${client_network_v4}" dev eth0
234234 fi
235- if [ "$KIND_IPV6_SUPPORT " == true ]; then
235+ if [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
236236 docker exec lbclient ip -6 route add fc00:f853:ccd:e799:: via "${client_network_v6}" dev eth0
237237 fi
238238 sleep 30
@@ -284,7 +284,7 @@ delete_metallb_dir() {
284284kubectl_wait_pods() {
285285 # IPv6 cluster seems to take a little longer to come up, so extend the wait time.
286286 OVN_TIMEOUT=300
287- if [ "$KIND_IPV6_SUPPORT " == true ]; then
287+ if [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
288288 OVN_TIMEOUT=480
289289 fi
290290
@@ -450,7 +450,7 @@ install_ipamclaim_crd() {
450450
451451docker_create_second_disconnected_interface() {
452452 echo "adding second interfaces to nodes"
453- local bridge_name="${1:-kindexgw }"
453+ local bridge_name="${1:-xgw }"
454454 echo "bridge: $bridge_name"
455455
456456 if [ "${OCI_BIN}" = "podman" ]; then
@@ -688,7 +688,7 @@ deploy_frr_external_container() {
688688 # Add route reflector client config
689689 sed -i '/remote-as 64512/a \ neighbor {{ . }} route-reflector-client' frr/frr.conf.tmpl
690690
691- if [ "$KIND_IPV6_SUPPORT " == true ]; then
691+ if [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
692692 # Check if IPv6 address-family section exists
693693 if ! grep -q 'address-family ipv6 unicast' frr/frr.conf.tmpl; then
694694 # Add IPv6 address-family section if it doesn't exist
@@ -706,7 +706,7 @@ deploy_frr_external_container() {
706706 fi
707707 ./demo.sh
708708 popd || exit 1
709- if [ "$KIND_IPV6_SUPPORT " == true ]; then
709+ if [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
710710 # Enable IPv6 forwarding in FRR
711711 docker exec frr sysctl -w net.ipv6.conf.all.forwarding=1
712712 fi
@@ -725,10 +725,10 @@ deploy_bgp_external_server() {
725725 # | ovn-worker2 | from default pod network)
726726 # ---------------------
727727 local ip_family ipv6_network
728- if [ "$KIND_IPV4_SUPPORT " == true ] && [ "$KIND_IPV6_SUPPORT " == true ]; then
728+ if [ "$PLATFORM_IPV4_SUPPORT " == true ] && [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
729729 ip_family="dual"
730730 ipv6_network="--ipv6 --subnet=${BGP_SERVER_NET_SUBNET_IPV6}"
731- elif [ "$KIND_IPV6_SUPPORT " == true ]; then
731+ elif [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
732732 ip_family="ipv6"
733733 ipv6_network="--ipv6 --subnet=${BGP_SERVER_NET_SUBNET_IPV6}"
734734 else
@@ -746,7 +746,7 @@ deploy_bgp_external_server() {
746746 bgp_network_frr_v4=$($OCI_BIN inspect -f '{{index .NetworkSettings.Networks "bgpnet" "IPAddress"}}' frr)
747747 echo "FRR kind network IPv4: ${bgp_network_frr_v4}"
748748 $OCI_BIN exec bgpserver ip route replace default via "$bgp_network_frr_v4"
749- if [ "$KIND_IPV6_SUPPORT " == true ] ; then
749+ if [ "$PLATFORM_IPV6_SUPPORT " == true ] ; then
750750 bgp_network_frr_v6=$($OCI_BIN inspect -f '{{index .NetworkSettings.Networks "bgpnet" "GlobalIPv6Address"}}' frr)
751751 echo "FRR kind network IPv6: ${bgp_network_frr_v6}"
752752 $OCI_BIN exec bgpserver ip -6 route replace default via "$bgp_network_frr_v6"
@@ -781,7 +781,7 @@ install_ffr_k8s() {
781781 # Allow receiving the bgp external server's prefix
782782 sed -i '/mode: filtered/a\ prefixes:\n - prefix: '"${BGP_SERVER_NET_SUBNET_IPV4}"'' receive_filtered.yaml
783783 # If IPv6 is enabled, add the IPv6 prefix as well
784- if [ "$KIND_IPV6_SUPPORT " == true ]; then
784+ if [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
785785 # Find all line numbers where the IPv4 prefix is defined
786786 IPv6_LINE=" - prefix: ${BGP_SERVER_NET_SUBNET_IPV6}"
787787 # Process each occurrence of the IPv4 prefix
827827 # Get subnet information
828828 subnet_json=$(kubectl get node $node -o jsonpath='{.metadata.annotations.k8s\.ovn\.org/node-subnets}')
829829
830- if [ "$KIND_IPV4_SUPPORT " == true ]; then
830+ if [ "$PLATFORM_IPV4_SUPPORT " == true ]; then
831831 # Extract IPv4 address (first address)
832832 node_ipv4=$(echo "$node_ips" | awk '{print $1}')
833833 ipv4_subnet=$(echo "$subnet_json" | jq -r '.default[0]')
840840 fi
841841
842842 # Add IPv6 route if enabled
843- if [ "$KIND_IPV6_SUPPORT " == true ]; then
843+ if [ "$PLATFORM_IPV6_SUPPORT " == true ]; then
844844 # Extract IPv6 address (second address, if present)
845845 node_ipv6=$(echo "$node_ips" | awk '{print $2}')
846846 ipv6_subnet=$(echo "$subnet_json" | jq -r '.default[1] // empty')
0 commit comments