subiquity/subiquitycore/ui/views
Dan Bungert e095d5040f network: use pyroute2 to manage default routes
The existing event based method of watching for has_network has a flaw.

The incoming route_change events from probert do not distinguish routes
on the same interface but a different metric, so if 2 routes on one
interface appear, we only get one event.  Then if one of those routes is
removed, we will inappropriately remove this route from the
default_routes list.

Aside from the code watching the event stream, the set of default routes
is an elaborate boolean value.

Simplify the code by passing around a boolean, and when we get a
route_change event, use that to go looking again at the list of default
routes.

LP: #2004659
2023-02-21 13:30:05 -07:00
..
tests fix crash when trying to view nic info 2021-01-27 09:35:09 +13:00
__init__.py remove long disabled views for setting default route 2019-03-07 14:13:37 +13:00
network.py network: use pyroute2 to manage default routes 2023-02-21 13:30:05 -07:00
network_configure_manual_interface.py Use logger names consistent with directory structure 2022-02-25 17:35:45 +01:00
network_configure_wlan_interface.py Use logger names consistent with directory structure 2022-02-25 17:35:45 +01:00