1
0
mirror of https://github.com/home-assistant/supervisor.git synced 2026-04-20 00:18:09 +01:00

Use udev path instead of mac or name for nm match (#4476)

This commit is contained in:
Mike Degatano
2023-08-04 17:39:35 -04:00
committed by GitHub
parent a98334ede8
commit 86f004e45a
11 changed files with 33 additions and 83 deletions

View File

@@ -17,10 +17,7 @@ async def test_get_connection_from_interface(network_manager: NetworkManager):
assert "interface-name" not in connection_payload["connection"]
assert connection_payload["connection"]["type"].value == "802-3-ethernet"
assert (
connection_payload["device"]["match-device"].value
== "mac:AA:BB:CC:DD:EE:FF,interface-name:eth0"
)
assert connection_payload["match"]["path"].value == ["platform-ff3f0000.ethernet"]
assert connection_payload["ipv4"]["method"].value == "auto"
assert "address-data" not in connection_payload["ipv4"]