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
b57889c84f
Use UUID for setting parent interface in vlans ( #4633 )
...
* Use UUID for setting parent interface in vlans
* Fix vlan test using interface name
2023-10-17 16:38:27 -04: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
b8249548ae
Fix network vlan api ( #3865 )
2022-09-13 21:23:13 +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
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
Wouter Schoot
509a37fc04
Typofix exsist -> exist ( #2491 )
...
* Typofix exsist -> exist
* Typofix exist -> exists
2021-02-01 09:34:17 +01:00
Pascal Vizeli
e2a473baa3
Add network reload to api ( #2319 )
2020-12-01 14:03:59 +01:00
Pascal Vizeli
fb4386a7ad
Use persistent MAC address instead clone / don't touch default ( #2317 )
2020-12-01 09:27:49 +01:00
Pascal Vizeli
9264d437b1
Fix network API default value & tests ( #2234 )
2020-11-10 15:08:35 +01:00
Pascal Vizeli
4c560d7c54
Fix gateway None on API ( #2230 )
...
* Fix gateway None on API
* fix tests
2020-11-09 10:00:39 +01:00
Pascal Vizeli
e1b9d754af
Fix all interface are primary ( #2228 )
2020-11-09 09:27:16 +01:00
Pascal Vizeli
bd786811a3
Network: abstract dbus and supervisor - ipv6/wifi/vlan ( #2217 )
...
* Abstract code between dbus - supervisor
* cleanup v2
* fix address vs interface
* fix API calls
* Fix methodnames
* add vlan type
* add vlan support
* Fix tests
* Add wifi support
* more OOO
* fix typing import
* typing part 2
* Fix profile
* fix test payload
* ignore powersafe
* support privancy
* fix property
* Fix tests
* full support all API
* Fix all
* more robust
* Update supervisor/dbus/network/connection.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Fix gateway
* fix empty gateway
* Allow no ipv6 or ipv4 kernel support
* Exclude device drivers
* Add wifi
* Use loop on api
* refactory p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p3
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p4
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p5
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p6
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p7
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* refactory p8
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* Fix lint
* update sup p1
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* update sup p2
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* fix tests
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* fix logging
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* improve mock handling
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* add fixtures
Signed-off-by: Pascal Vizeli <pvizeli@syshack.ch>
* fix tests
* better testing
* Add more tests
* Fix API test
* Add test for vlan payload
* Support variation
* Fix doc string
* support remove & wifi scan
* make sure we ignore local-link on ipv6
* remove privancy - add vlan
* Fix tests
* fix isort
* Fixture dbus by commands
* Add dnsmanager fixture
* expose commands called by dbus
* Add wifi tests
* Update supervisor/plugins/dns.py
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
* Address comments & fix tests
* change url to be closer on others
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
2020-11-09 08:56:42 +01:00
Paulus Schoutsen
ffaeb2b96d
Add validate session API ( #2223 )
2020-11-06 11:52:11 +01:00
Pascal Vizeli
45861617b9
Add test for network docker ( #2153 )
2020-10-20 10:52:16 +02:00
Pascal Vizeli
ac4277cd7b
Return default network connection ( #2115 )
2020-10-12 09:13:27 +02:00
Joakim Sørensen
9bcb15dbc0
MVP: Add Network Manager context ( #1937 )
...
Co-authored-by: Pascal Vizeli <pvizeli@syshack.ch>
2020-08-24 16:58:02 +02:00