summaryrefslogtreecommitdiff
path: root/python/vyos
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-10-21 19:38:38 +0200
committerChristian Poessinger <christian@poessinger.com>2021-10-21 19:38:38 +0200
commitc1015d8ce0013719eb898b60b14ffec192b8141c (patch)
tree437d13855736da81e90be43e4e6f48c65270ff86 /python/vyos
parent1312068cb9743dd4d16edd37dbed9c142724997e (diff)
downloadvyos-1x-c1015d8ce0013719eb898b60b14ffec192b8141c.tar.gz
vyos-1x-c1015d8ce0013719eb898b60b14ffec192b8141c.zip
tunnel: T3925: dhcp-interface was of no use - use source-interface instead
Diffstat (limited to 'python/vyos')
-rw-r--r--python/vyos/configverify.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/python/vyos/configverify.py b/python/vyos/configverify.py
index ce7e76eb4..3aece499e 100644
--- a/python/vyos/configverify.py
+++ b/python/vyos/configverify.py
@@ -95,15 +95,12 @@ def verify_tunnel(config):
raise ConfigError('Must configure the tunnel encapsulation for '\
'{ifname}!'.format(**config))
- if 'source_address' not in config and 'dhcp_interface' not in config:
- raise ConfigError('source-address is mandatory for tunnel')
+ if 'source_address' not in config and 'source_interface' not in config:
+ raise ConfigError('source-address or source-interface required for tunnel!')
if 'remote' not in config and config['encapsulation'] != 'gre':
raise ConfigError('remote-ip address is mandatory for tunnel')
- if {'source_address', 'dhcp_interface'} <= set(config):
- raise ConfigError('Can not use both source-address and dhcp-interface')
-
if config['encapsulation'] in ['ipip6', 'ip6ip6', 'ip6gre']:
error_ipv6 = 'Encapsulation mode requires IPv6'
if 'source_address' in config and not is_ipv6(config['source_address']):