Stefan Agner
1ba621be60
Use separate data structure for IP configuration ( #5262 )
...
* Use separate data structure for IP configuration
So far we use the same IpConfig data structure to represent the users
IP setting and the currently applied IP configuration.
This commit separates the two in IpConfig (for the currently applied
IP configuration) and IpSetting (representing the user provided IP
setting).
* Use custom string constants for connection settings
Use separate string constants for all connection settings. This makes
it easier to search where a particular NetworkManager connection
setting is used.
* Use Python typing for IpAddress in IpProperties
* Address pytest issue
2024-08-22 08:08:55 +02:00
Stefan Agner
f6faa18409
Bump pre-commit ruff to 0.5.7 and reformat ( #5242 )
...
It seems that the codebase is not formatted with the latest ruff
version. This PR reformats the codebase with ruff 0.5.7.
2024-08-13 20:53:56 +02:00
Mike Degatano
7fd6dce55f
Migrate to Ruff for lint and format ( #4852 )
...
* Migrate to Ruff for lint and format
* Fix pylint issues
* DBus property sets into normal awaitable methods
* Fix tests relying on separate tasks in connect
* Fixes from feedback
2024-02-05 11:37:39 -05:00
Mike Degatano
f93b753c03
Backup and restore track progress in job ( #4503 )
...
* Backup and restore track progress in job
* Change to stage only updates and fix tests
* Leave HA alone if it wasn't restored
* skip check HA stage message when we don't check
* Change to helper to get current job
* Fix tests
* Mark jobs as internal to skip notifying HA
2023-08-30 16:01:03 -04:00
Mike Degatano
86f004e45a
Use udev path instead of mac or name for nm match ( #4476 )
2023-08-04 17:39:35 -04:00
Mike Degatano
f1a72ee418
Include interface name in match-device settings ( #4444 )
2023-07-19 10:15:59 +02:00
Mike Degatano
abbf8b9b65
Identify network interfaces by mac over name ( #4416 )
...
* Identify network interfaces by mac over name
* Refactor long if statement into method
2023-07-06 16:26:19 -04:00
Mike Degatano
a6caccd845
Use session dbus mocks for all tests ( #4198 )
...
* Use session dbus mocks for all tests
* func instead of fn for pylint
2023-03-21 07:30:31 +01:00
Mike Degatano
5d2b5bada7
Events when unhealthy/unsupported changes ( #3951 )
...
* Events when unhealthy/unsupported changes
* called_once_with to called_once
2022-10-16 11:07:15 +02:00
Mike Degatano
c24b811180
Use dbus-fast unpack_variants option ( #3885 )
...
* Use dbus-fast unpack_variants option
* More readable log on signals
2022-09-21 20:52:06 +02:00
Mike Degatano
0958cd0c06
Switch from dbus-next to dbus-fast ( #3882 )
...
* Switch to dbus-fast
* dbus-fast==1.6.0
2022-09-21 09:24:04 +02:00
Mike Degatano
2072370ccc
Revert "Switch to dbus-fast ( #3877 )" ( #3878 )
...
This reverts commit 615758a1df .
2022-09-19 17:18:25 -04:00
Mike Degatano
615758a1df
Switch to dbus-fast ( #3877 )
2022-09-19 21:55:22 +02:00
Mike Degatano
99bc201688
Listen for dbus property changes ( #3872 )
...
* Listen for dbus property changes
* Avoid remaking dbus proxy objects
* proper snake case for pylint
* some cleanup and more tests
2022-09-17 09:55:41 +02:00
Mike Degatano
5f98ab7e3e
Reduce patching call dbus in tests ( #3866 )
2022-09-13 21:22:15 +02:00
Mike Degatano
d195f19fa8
Refactor to dbus-next proxy interfaces ( #3862 )
...
* Refactor to dbus-next proxy interfaces
* Fix tests mocking dbus methods
* Fix call dbus
2022-09-13 13:45:28 -04:00
Mike Degatano
4f272ad4fd
Dbus refactor and tests ( #3854 )
...
* Dbus refactor and tests
* Link to timedate introspection
2022-09-12 11:59:56 -04:00
Mike Degatano
fc646db95f
Reduce connectivity checks ( #3836 )
...
* Reduce connectivity checks
* Fix/remove connectivity tests
* Remove throttle from prior connectivity tests
* Use dbus_property wrapper
* Allow variable throttle period with lambda
* Add evaluation for connectivity check disabled
2022-09-03 09:48:30 +02:00
Mike Degatano
bae7fe4184
Debug info for network connection problem ( #3828 )
...
* Debug info for network connection problem
* Update network tests
2022-08-29 22:01:40 +02:00
Mike Degatano
b4e1e3e853
Identify and handle dhcp issues ( #3806 )
...
* Identify and handle dhcp issues
* Change test from DHCP to Connection Problem
2022-08-23 13:57:16 +02:00
Mike Degatano
3b3cd61e3d
Never disable interfaces at startup ( #3676 )
2022-06-09 13:55:36 +02:00
Mike Degatano
e2ac5042d8
Apply network settings on start to fix defaults ( #3528 )
...
* Apply network settings on start to fix defaults
* Use job check and add tests
2022-03-31 12:14:40 +02:00