diff options
author | Julien Castets <castets.j@gmail.com> | 2017-05-16 09:19:11 +0000 |
---|---|---|
committer | Scott Moser <smoser@brickies.net> | 2017-05-16 11:44:11 -0400 |
commit | 9d437489b8ce1f8cd9d34cd9ff4994ca18bd2d78 (patch) | |
tree | 7eb47a15176fae40475c0bdcfd20f84bbd2e5b5c /tests | |
parent | dd03bb411c9a6f10854a3bbc3223b204c3d4d174 (diff) | |
download | vyos-cloud-init-9d437489b8ce1f8cd9d34cd9ff4994ca18bd2d78.tar.gz vyos-cloud-init-9d437489b8ce1f8cd9d34cd9ff4994ca18bd2d78.zip |
Add address to config entry generated by _klibc_to_config_entry.
If /run/net-<name>.cfg contains an IPV4ADDR or an IPV6ADDR, the config
file generated by _klibc_to_config_entry now contains the "address".
LP: #1691135
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittests/test_net.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/unittests/test_net.py b/tests/unittests/test_net.py index 7c5dc4ef..052c4016 100644 --- a/tests/unittests/test_net.py +++ b/tests/unittests/test_net.py @@ -100,7 +100,8 @@ STATIC_EXPECTED_1 = { 'gateway': '10.0.0.1', 'dns_search': ['foo.com'], 'type': 'static', 'netmask': '255.255.255.0', - 'dns_nameservers': ['10.0.1.1']}], + 'dns_nameservers': ['10.0.1.1'], + 'address': '10.0.0.2'}], } # Examples (and expected outputs for various renderers). |