neutron/neutron/privileged/agent/linux
Rodolfo Alonso Hernandez ecef65b9b5 Do not use exceptions in get_link_id() to control the code flow
Instead of using exceptions as control flow, check the Pyroute2 command
result and only raise the Neutron exception if needed. This will also
reduce the traceback log in case of raising NetworkInterfaceNotFound.

Although in Python the use of exception for this is common, this is
usually considered an antipattern.

Change-Id: I0e8bb3b0f6a46f2bac75e38c6ac6cdd094247f89
Closes-Bug: #1849449
2019-10-25 16:28:37 +00:00
..
__init__.py Adopt privsep and read routing table with pyroute2 2016-12-21 17:52:58 +02:00
ip_lib.py Do not use exceptions in get_link_id() to control the code flow 2019-10-25 16:28:37 +00:00
netlink_constants.py Correct arguments to nfct_open 2019-01-24 08:41:38 +00:00
netlink_lib.py Fix pep8 E128 warnings in non-test code 2019-03-12 21:22:33 +00:00
tc_lib.py TC filter functions should pass "prio" parameter 2019-07-04 12:46:11 +00:00