mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-25 01:56:34 +00:00
Enable support for mdns & llmnr for host (#2251)
This commit is contained in:
parent
5552b1da49
commit
028ec277eb
@ -6,7 +6,9 @@
|
|||||||
'interface-name': <'{{ interface.name }}'>,
|
'interface-name': <'{{ interface.name }}'>,
|
||||||
{% endif %}
|
{% endif %}
|
||||||
'type': <'{% if interface.type == "ethernet" %}802-3-ethernet{% elif interface.type == "wireless" %}802-11-wireless{% else %}{{ interface.type.value }}{% endif %}'>,
|
'type': <'{% if interface.type == "ethernet" %}802-3-ethernet{% elif interface.type == "wireless" %}802-11-wireless{% else %}{{ interface.type.value }}{% endif %}'>,
|
||||||
'uuid': <'{{ uuid }}'>
|
'uuid': <'{{ uuid }}'>,
|
||||||
|
'llmnr': <uint32 2>,
|
||||||
|
'mdns': <uint32 2>
|
||||||
}
|
}
|
||||||
|
|
||||||
{% if interface.ipv4 %}
|
{% if interface.ipv4 %}
|
||||||
|
@ -24,6 +24,9 @@ async def test_interface_update_payload_ethernet(coresys):
|
|||||||
DBus.parse_gvariant(data)["802-3-ethernet"]["assigned-mac-address"] == "stable"
|
DBus.parse_gvariant(data)["802-3-ethernet"]["assigned-mac-address"] == "stable"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
assert DBus.parse_gvariant(data)["connection"]["mdns"] == 2
|
||||||
|
assert DBus.parse_gvariant(data)["connection"]["llmnr"] == 2
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_interface_update_payload_ethernet_ipv4(coresys):
|
async def test_interface_update_payload_ethernet_ipv4(coresys):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user