Commit c7598993 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

For non-dhcp interfaces, ignore carrier

parent 80ce742d
......@@ -108,6 +108,9 @@ class ConfigSystemdNetworkd(Plugin):
# Check if this interface uses DHCP
if 'dhcp' in config:
network_file.write(f'DHCP=yes\n')
else:
network_file.write(f'ConfigureWithoutCarrier=yes\n')
network_file.write(f'IgnoreCarrierLoss=yes\n')
# Check if we have IP addresses
if 'ipv4address' in config:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment