Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Nigel Kukard
IDMS Linux Installer
Commits
c7598993
Commit
c7598993
authored
Jun 20, 2019
by
Nigel Kukard
Browse files
For non-dhcp interfaces, ignore carrier
parent
80ce742d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/idmslinux_installer/plugins/config_system/systemd_networkd.py
View file @
c7598993
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment