summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2020-06-27 10:41:30 +0700
committerGitHub <noreply@github.com>2020-06-27 10:41:30 +0700
commit1d97d52120eaa33a3c2edb39e966002dab7f9576 (patch)
treeca1c8df4ad81438d1b1226066468414adde95066
parent2f96eee421df9580b112bd1485624e7c9fbceca9 (diff)
parent44e5e5c73d2b1ca59ab62f261258bc4309dfd67f (diff)
downloadvyos-1x-1d97d52120eaa33a3c2edb39e966002dab7f9576.tar.gz
vyos-1x-1d97d52120eaa33a3c2edb39e966002dab7f9576.zip
Merge pull request #478 from kroy-the-rabbit/fix_static_host_mapping
T2654: Remove overzealous error checking
-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: