mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-19 15:16:33 +00:00
Format NetworkManager connection name correctly for VLANs (#4986)
* Format NetworkManager connection name correctly for VLANs Make sure NetworkManager connections are named correctly for VLANs as well (<interface-name>.<vlan-id>). * Avoid extending VLAN configuration name
This commit is contained in:
parent
d26058ac80
commit
a9265afd4c
@ -37,8 +37,8 @@ def get_connection_from_interface(
|
||||
# Generate/Update ID/name
|
||||
if not name or not name.startswith("Supervisor"):
|
||||
name = f"Supervisor {interface.name}"
|
||||
if interface.type == InterfaceType.VLAN:
|
||||
name = f"{name}.{interface.vlan.id}"
|
||||
if interface.type == InterfaceType.VLAN:
|
||||
name = f"{name}.{interface.vlan.id}"
|
||||
|
||||
if interface.type == InterfaceType.ETHERNET:
|
||||
iftype = "802-3-ethernet"
|
||||
|
Loading…
x
Reference in New Issue
Block a user