diff options
author | kroy <kroy@kroy.io> | 2020-06-26 22:19:48 -0500 |
---|---|---|
committer | kroy <kroy@kroy.io> | 2020-06-26 22:19:48 -0500 |
commit | 44e5e5c73d2b1ca59ab62f261258bc4309dfd67f (patch) | |
tree | ca1c8df4ad81438d1b1226066468414adde95066 | |
parent | 2f96eee421df9580b112bd1485624e7c9fbceca9 (diff) | |
download | vyos-1x-44e5e5c73d2b1ca59ab62f261258bc4309dfd67f.tar.gz vyos-1x-44e5e5c73d2b1ca59ab62f261258bc4309dfd67f.zip |
T2654: Remove overzealous error checking
-rwxr-xr-x | src/conf_mode/host_name.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/conf_mode/host_name.py b/src/conf_mode/host_name.py index 3e301477d..f2fa64233 100755 --- a/src/conf_mode/host_name.py +++ b/src/conf_mode/host_name.py @@ -97,10 +97,6 @@ def verify(conf, hosts): for host, hostprops in hosts['static_host_mapping'].items(): if not hostprops['address']: raise ConfigError(f'IP address required for static-host-mapping "{host}"') - if hostprops['address'] in all_static_host_mapping_addresses: - raise ConfigError(( - f'static-host-mapping "{host}" address "{hostprops["address"]}"' - f'already used in another static-host-mapping')) all_static_host_mapping_addresses.append(hostprops['address']) for a in hostprops['aliases']: if not hostname_regex.match(a) and len(a) != 0: |