diff options
author | Ryan Harper <ryan.harper@canonical.com> | 2017-06-09 12:35:11 -0500 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-07-18 17:04:59 -0400 |
commit | d1e8eb73aca6a3f5cee415774dcf540e934ec250 (patch) | |
tree | 93fb353a830d3d27d8114052a8acb8f7d4bf0c84 /tests/unittests/test_distros/test_netconfig.py | |
parent | e80517ae6aea49c9ab3bd622a33fee44014f485f (diff) | |
download | vyos-cloud-init-d1e8eb73aca6a3f5cee415774dcf540e934ec250.tar.gz vyos-cloud-init-d1e8eb73aca6a3f5cee415774dcf540e934ec250.zip |
sysconfig: include GATEWAY value if set in subnet
Render the GATEWAY= value in interface files which have a gateway in the
subnet configuration.
LP: #1686856
Diffstat (limited to 'tests/unittests/test_distros/test_netconfig.py')
-rw-r--r-- | tests/unittests/test_distros/test_netconfig.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unittests/test_distros/test_netconfig.py b/tests/unittests/test_distros/test_netconfig.py index 83580cc0..dffe1781 100644 --- a/tests/unittests/test_distros/test_netconfig.py +++ b/tests/unittests/test_distros/test_netconfig.py @@ -479,6 +479,7 @@ BOOTPROTO=none DEVICE=eth0 IPADDR=192.168.1.5 NETMASK=255.255.255.0 +GATEWAY=192.168.1.254 NM_CONTROLLED=no ONBOOT=yes TYPE=Ethernet @@ -627,6 +628,7 @@ IPV6_AUTOCONF=no BOOTPROTO=none DEVICE=eth0 IPV6ADDR=2607:f0d0:1002:0011::2/64 +GATEWAY=2607:f0d0:1002:0011::1 IPV6INIT=yes NM_CONTROLLED=no ONBOOT=yes |