summaryrefslogtreecommitdiff
path: root/src/conf_mode/host_name.py
diff options
context:
space:
mode:
authorkroy <kroy@kroy.io>2020-06-26 22:19:48 -0500
committerkroy <kroy@kroy.io>2020-06-26 22:19:48 -0500
commit44e5e5c73d2b1ca59ab62f261258bc4309dfd67f (patch)
treeca1c8df4ad81438d1b1226066468414adde95066 /src/conf_mode/host_name.py
parent2f96eee421df9580b112bd1485624e7c9fbceca9 (diff)
downloadvyos-1x-44e5e5c73d2b1ca59ab62f261258bc4309dfd67f.tar.gz
vyos-1x-44e5e5c73d2b1ca59ab62f261258bc4309dfd67f.zip
T2654: Remove overzealous error checking
Diffstat (limited to 'src/conf_mode/host_name.py')
-rwxr-xr-xsrc/conf_mode/host_name.py4
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: