diff options
author | Alexander Chernavin <achernavin@netgate.com> | 2022-02-11 15:25:40 +0000 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2022-03-29 12:49:45 +0000 |
commit | 1c5b127d2247b68f362b3caac8ff229406fab4d0 (patch) | |
tree | 523635b5135c75003ff70a253463270edad9b51f /test/test_l2bd.py | |
parent | 53e575ce8a495d132b41ef9b2f1f6b70299a8134 (diff) |
linux-cp: add support for table flush if multiple interfaces
Type: improvement
lcp_router_table_flush() is used to remove routes from the given route
table if they are resolved through the given interface with specified
FIB source. Currently, if you need to remove routes from a route table
that are resolved through one of the interfaces from a vector, the
function has to be executed for every interface from the vector. Every
execution walks the route table again.
With this change, lcp_router_table_flush() accepts a vector of
interfaces. Thus, the function can walk a single route table once and
delete routes that resolve through one of the interfaces from the
vector.
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Change-Id: I6d99384064d279dea24bb4dc1790a1af943be41c
Diffstat (limited to 'test/test_l2bd.py')
0 files changed, 0 insertions, 0 deletions