Commit 16106fc
authored
feat(natgw): give pod_ips to bgp speakre to prioritize IPv4 over IPv6 (kubeovn#6058)
When running DualStack with IPv6 before IPv4 in the podCIDR, the podIP env variable will contain an IPv6, which is not a valid router ID. This causes GoBGP to crash, failing to properly serialize its own routerID inthe BGPOpen message. The NAT GW already has code to infer the routerID from the podIPs, and will prioritize IPv4s. We just didn't pass it through the correct env variable when the speaker is in a NAT gateway
Signed-off-by: SkalaNetworks <contact@skala.network>1 parent d506cb3 commit 16106fc
1 file changed
+8
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
157 | 157 | | |
158 | 158 | | |
159 | 159 | | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
160 | 168 | | |
161 | 169 | | |
162 | 170 | | |
| |||
0 commit comments