Commit e63258f
bgpd: Link L2VNI to L3VNI only when it really exists
When a L2VNI is made known to bgpd, the current linking of it to L3VNI
does not quite check if the L3VNI is known to bgpd. This is incorrect
and can lead to problematic behavior in some situations. In one
specific instance, if type-1 routes from a remote MH pair already
exist, the ES-VRF association gets prematurely setup leading to the
corresponding L3NHG getting setup with incorrect information.
Note: Only additional checks are added in the linkage function. Code
already exists to link all relevant L2VNIs to associated L3VNI when the
L3VNI is learnt by bgpd.
Signed-off-by: Vivek Venkatraman <vivek@nvidia.com>1 parent d20531e commit e63258f
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| 283 | + | |
283 | 284 | | |
284 | 285 | | |
285 | 286 | | |
286 | 287 | | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
287 | 292 | | |
288 | 293 | | |
289 | 294 | | |
290 | 295 | | |
291 | 296 | | |
292 | | - | |
293 | 297 | | |
294 | 298 | | |
295 | | - | |
296 | | - | |
| 299 | + | |
297 | 300 | | |
298 | 301 | | |
299 | 302 | | |
| |||
0 commit comments