Enable support for mdns & llmnr for host (#2251)

This commit is contained in:
Pascal Vizeli 2020-11-13 16:47:56 +01:00 committed by GitHub
parent 5552b1da49
commit 028ec277eb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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 %}

View File

@ -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):