Commit f15a28a
cilium-cni: skip ParentInterfaceIndex when IPv4 is disabled in ENI mode
In ENI IPAM mode the CNI plugin derived the endpoint's parent interface
index from ipam.IPv4.MasterMac. In IPv6-only clusters IPv4 is not
allocated, so ipam.IPv4 is nil and this dereference panicked.
ParentInterfaceIndex is only consumed by the IPv4 masquerade datapath
(to redirect reply traffic out the endpoint's ENI), so there is nothing
to set when IPv4 is disabled. Guard the lookup on ipv4IsEnabled.
Signed-off-by: Alex Melhem <alex.melhem@datadoghq.com>1 parent df80056 commit f15a28a
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
698 | 698 | | |
699 | 699 | | |
700 | 700 | | |
701 | | - | |
702 | | - | |
703 | | - | |
704 | | - | |
705 | | - | |
| 701 | + | |
| 702 | + | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
| 708 | + | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
| 712 | + | |
706 | 713 | | |
707 | 714 | | |
708 | 715 | | |
| |||
0 commit comments