Skip to content
This repository has been archived by the owner on Aug 13, 2024. It is now read-only.

Commit

Permalink
Fix CIDR swapping logic (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
mboersma authored Dec 8, 2022
1 parent 0d5588b commit 76bbe2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/capi/azext_capi/custom.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ def install_cni(cmd, cluster_name, workload_cfg, windows, args):
interface0 = ipaddress.ip_interface(cidr0)
interface1 = ipaddress.ip_interface(cidr1)
if interface0.version == 6 and interface1.version == 4:
interface0, interface1 = interface1, interface0
cidr0, cidr1 = cidr1, cidr0
values_file = f"{file_base}/templates/addons/calico-dual-stack/values.yaml"
if interface0.version == 4 and interface1.version == 6:
values_file = f"{file_base}/templates/addons/calico-dual-stack/values.yaml"
helminfo = HelmInfo(
Expand Down

0 comments on commit 76bbe2f

Please sign in to comment.