diff options
| author | anlan_cs <vic.lan@pica8.com> | 2024-07-12 17:03:03 +0800 |
|---|---|---|
| committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-07-15 18:46:22 +0000 |
| commit | 11812ec93ba656f28b157e4da6c6ca6eebca7ac2 (patch) | |
| tree | 2342e94fa3fb6ec8bcdc4d1797efa673e6800a7e /tests/topotests/example-test/test_example.py | |
| parent | c09f1aeb8587af73b3d521d6075e8b0f361c0b3b (diff) | |
zebra: fix missing static routes
Use `vtysh` with this input file:
```
ip route A nh1
ip route A nh2
ip route B nh1
ip route B nh2
```
When running "ip route B" with "nh1" and "nh2", the procedure maybe is:
1) Create the two nexthops: "nh1" and "nh2".
2) Register "nh1" with `static_zebra_nht_register()`, then the states of both
"nh1" and "nht2" are set to "STATIC_SENT_TO_ZEBRA".
3) Register "nh2" with `static_zebra_nht_register()`, then only the routes with
nexthop of "STATIC_START" will be sent to zebra.
So, send the routes with the nexthop of "STATIC_SENT_TO_ZEBRA" to zebra.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
(cherry picked from commit 4518d386f7683289b079708fcdb0c42ced4754d9)
Diffstat (limited to 'tests/topotests/example-test/test_example.py')
0 files changed, 0 insertions, 0 deletions
