neutron/neutron/tests/unit/privileged
Brian Haley 16875b5f92 Catch non-existent entry failures better in ip_lib
The privileged/agent/linux/ip_lib.py code was not always
catching "entry does not exist" type errors when deleting
entries, and most of the callers were not catching it either,
which could lead to random failures.

Add code in the IP route, rule and bridge fdb code to catch
these errors and not raise on them, other exceptions will
still be raised.

Also fixed delete_neigh_entry() to not raise when the
given namespace does not exist to make it like all the
other calls in the file.

Added or modified functional tests for above cases.

Change-Id: I083649ab1b9a9057ee276a7f3ba069eb667db870
Closes-bug: #2030804
2023-08-24 11:22:31 -04:00
..
agent Catch non-existent entry failures better in ip_lib 2023-08-24 11:22:31 -04:00
__init__.py Add netlink-lib to manage conntrack entries 2017-07-27 13:56:40 +07:00