Commit 99094ec7 authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Merge branch 'nkupdates' into 'master'

Use scope link when adding a gateway route

See merge request idms-linux-rolling/projects/idms-linux-installer!34
parents b50796ae 54fbd38b
Pipeline #118 passed with stage
in 1 minute and 38 seconds
......@@ -29,7 +29,7 @@ from idmslinux_installer.ilistate import IliState
from idmslinux_installer.plugin import PluginCollection
from idmslinux_installer.util.blockdevices import BlockDevices
__version__ = "0.1.5"
__version__ = "0.1.6"
class Ili:
......@@ -135,11 +135,13 @@ class ConfigSystemdNetworkd(Plugin):
if self._outside_network4(config, 'ipv4address', 'ipv4gateway'):
network_file.write('Destination=%s\n' % config['ipv4gateway'])
# If ipv6gateway is not within ipv6address's range, then add a route section
if self._outside_network6(config, 'ipv6address', 'ipv6gateway'):
network_file.write('Destination=%s\n' % config['ipv6gateway'])
# Finally close the file
Supports Markdown
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