From ae41b2bacfe1ed30ea8311278e4560d8cfb244ae Mon Sep 17 00:00:00 2001 From: Viacheslav Date: Fri, 22 Oct 2021 11:55:17 +0000 Subject: hosts: T2683: Allow multiple entries for static-host-mapping (cherry picked from commit b1db3de80b8b5f4e2dcbc6d687d342986345c4b2) --- src/conf_mode/host_name.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/conf_mode/host_name.py') diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py index a7135911d..87bad0dc6 100755 --- a/src/conf_mode/host_name.py +++ b/src/conf_mode/host_name.py @@ -79,7 +79,7 @@ def get_config(config=None): # system static-host-mapping for hn in conf.list_nodes(['system', 'static-host-mapping', 'host-name']): hosts['static_host_mapping'][hn] = {} - hosts['static_host_mapping'][hn]['address'] = conf.return_value(['system', 'static-host-mapping', 'host-name', hn, 'inet']) + hosts['static_host_mapping'][hn]['address'] = conf.return_values(['system', 'static-host-mapping', 'host-name', hn, 'inet']) hosts['static_host_mapping'][hn]['aliases'] = conf.return_values(['system', 'static-host-mapping', 'host-name', hn, 'alias']) return hosts -- cgit v1.2.3