summaryrefslogtreecommitdiff
path: root/tests/topotests/bgp_rfapi_basic_sanity/scripts/cleanup_all.py
AgeCommit message (Collapse)Author
2025-03-31bgpd: rfapi: track outstanding rib and import timers, free mem at exitG. Paul Ziemba
While here, also make "VPN SAFI clear" test wait for clear result (tests/topotests/bgp_rfapi_basic_sanity{,_config2}) Original RFAPI code relied on the frr timer system to remember various allocations that were supposed to be freed at future times rather than manage a parallel database. However, if bgpd is terminated before the times expire, those pending allocations are marked as memory leaks, even though they wouldn't be leaks under normal operation. This change adds some hash tables to track these outstanding allocations that are associated with pending timers, and uses those tables to free the allocations when bgpd exits. Signed-off-by: G. Paul Ziemba <paulz@labn.net>
2020-11-25topotests: precise importation folderPhilippe Guibert
the topolog importation folder must be precised. otherwise following error message appears: root@dut-vm:~/topotests/bgp_flowspec# python3 test_bgp_flowspec_topo.py Traceback (most recent call last): File "test_bgp_flowspec_topo.py", line 96, in <module> from lib.lutil import lUtil File "/root/topotests/bgp_flowspec/../lib/lutil.py", line 25, in <module> from topolog import logger ImportError: No module named 'topolog' root@dut-vm:~/topotests/bgp_flowspec# The same error occurs with lutil and bgprib which are 2 libraries located under lib/ folder. Some precisions are added too. PR=71290 Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
2020-04-03tests: Run python formatter (black) for topotestsreformat
Mostly ' => ", whitespace changes. Using https://github.com/psf/black Signed-off-by: reformat <reformat@nobody.nobody>
2019-05-01topotests/bgp_rfapi_basic_sanity: cleanup rfapi using non-debug commandLou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2018-11-27bgp_rfapi_basic_sanity: added multi-path and updated responsesLou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2018-11-27bgp_rfapi_basic_sanity: wait for clean exitLou Berger
Signed-off-by: Lou Berger <lberger@labn.net>
2018-11-27bgp_rfapi_basic_sanity: added basic rfapi sanity topotestLou Berger
Signed-off-by: Lou Berger <lberger@labn.net>