Commit eebaf97
authored
[routeorch] Wait for the VRF to be created (#3652)
Why I did it
With VRF configuration and route getting added in the startup, the orchangent crashes.
How I did it
addRoutePost() assumes the VRF is already added and attempts to get the VRF ID for the same and used it to lookup the route entry. Since the VRF is not yet created, exception gets thrown.
When the VRF is not yet created, the route add can be postponed for the VRF to be created first.
How to verify it
Running the tests/vrf/test_vrf.py, the orchagent doesnt crash anymore and the route gets created in the ASIC1 parent 7dd3be9 commit eebaf97
1 file changed
+13
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2323 | 2323 | | |
2324 | 2324 | | |
2325 | 2325 | | |
| 2326 | + | |
| 2327 | + | |
| 2328 | + | |
| 2329 | + | |
| 2330 | + | |
| 2331 | + | |
| 2332 | + | |
| 2333 | + | |
| 2334 | + | |
2326 | 2335 | | |
2327 | 2336 | | |
2328 | 2337 | | |
| |||
2383 | 2392 | | |
2384 | 2393 | | |
2385 | 2394 | | |
2386 | | - | |
| 2395 | + | |
2387 | 2396 | | |
2388 | 2397 | | |
2389 | 2398 | | |
2390 | | - | |
| 2399 | + | |
2391 | 2400 | | |
2392 | 2401 | | |
2393 | 2402 | | |
| |||
2429 | 2438 | | |
2430 | 2439 | | |
2431 | 2440 | | |
2432 | | - | |
| 2441 | + | |
2433 | 2442 | | |
2434 | 2443 | | |
2435 | 2444 | | |
| |||
2626 | 2635 | | |
2627 | 2636 | | |
2628 | 2637 | | |
2629 | | - | |
| 2638 | + | |
2630 | 2639 | | |
2631 | 2640 | | |
2632 | 2641 | | |
| |||
0 commit comments