diff options
| author | Louis Scalbert <louis.scalbert@6wind.com> | 2024-05-24 16:34:23 +0200 |
|---|---|---|
| committer | Louis Scalbert <louis.scalbert@6wind.com> | 2024-06-07 10:13:32 +0200 |
| commit | 85eb60ffd6ce40428c3a99aeddf46b1b60d2e0a5 (patch) | |
| tree | 4f6baa4821eb9e7e4d9e469a99e8811c13a2d8c0 /tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py | |
| parent | cb440058f2d85d1408f932ad820c38e8e1b17191 (diff) | |
zebra: fix show route memory consumption
When displaying a route table in JSON, a table JSON object is storing
all the prefix JSON objects containing the prefix information. This
results in excessive memory allocation for JSON objects, potentially
leading to an out-of-memory error on the machine with large routing
tables.
To Fix the memory consumption issue for the "show ip[v6] route [vrf XX]
json" command, display the prefixes one by one and free the memory of
each JSON object after it has been displayed.
Signed-off-by: Louis Scalbert <louis.scalbert@6wind.com>
Diffstat (limited to 'tests/topotests/bgp_asdot_regex/test_bgp_asdot_regex.py')
0 files changed, 0 insertions, 0 deletions
