]> git.puffer.fish Git - matthieu/frr.git/commit
tests: fix test_static_timing route removal
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 13 Oct 2021 21:13:57 +0000 (00:13 +0300)
committerIgor Ryzhov <iryzhov@nfware.com>
Wed, 20 Oct 2021 22:04:44 +0000 (01:04 +0300)
commit925d7f925ba098d7c0df84f8af65666de1be2db1
treea700f550aaae0a98005c650ad125a13c3a0c8573
parentd759866d5b9026f8761bf89dfc9c4107cc1df764
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>
tests/topotests/config_timing/test_config_timing.py