diff options
| author | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-14 00:13:57 +0300 |
|---|---|---|
| committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-10-21 01:04:44 +0300 |
| commit | 925d7f925ba098d7c0df84f8af65666de1be2db1 (patch) | |
| tree | a700f550aaae0a98005c650ad125a13c3a0c8573 /tests/topotests/pim_basic/test_pim.py | |
| parent | d759866d5b9026f8761bf89dfc9c4107cc1df764 (diff) | |
tests: fix test_static_timing route removal
On the first step, the test creates 10000 static routes. It passes 10000
to `get_ip_networks` and it generates 10000 /22 routes.
On the fourth step, the test tries to remove 5000 previously created
routes. It passes 5000 to `get_ip_networks` and here starts the problem.
Instead of generating 5000 /22 routes, it generates 5000 /21 routes. And
the whole step is a no-op, we constantly see the following logs:
```
% Refusing to remove a non-existent route
```
To consistently generate same routes, `get_ip_networks` must always use
the same prefix length.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'tests/topotests/pim_basic/test_pim.py')
0 files changed, 0 insertions, 0 deletions
