summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2023-03-09 14:27:52 +0000
committerGitHub <noreply@github.com>2023-03-09 14:27:52 +0000
commit9e79f8a38be18383f12c06913d23e63b2b2e2ae3 (patch)
treed12e4eade09bfed3bee7573d3572ed4088001223 /src
parentb51352e6150e9d9989f351a3ca9bfc93e2965f2d (diff)
parentc2f3bb253d37de98eedc62a49eb8453be320d45e (diff)
downloadvyos-1x-9e79f8a38be18383f12c06913d23e63b2b2e2ae3.tar.gz
vyos-1x-9e79f8a38be18383f12c06913d23e63b2b2e2ae3.zip
Merge pull request #1878 from sever-sever/T5066-eq
T5066: Fix GRE tunnel variable name for verify check keys
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/interfaces-tunnel.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py
index 3bfc7d665..681caff8e 100755
--- a/src/conf_mode/interfaces-tunnel.py
+++ b/src/conf_mode/interfaces-tunnel.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python3
#
-# Copyright (C) 2018-2022 yOS maintainers and contributors
+# Copyright (C) 2018-2023 yOS maintainers and contributors
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 or later as
@@ -115,7 +115,7 @@ def verify(tunnel):
if our_key != None:
if their_address == our_address and their_key == our_key:
raise ConfigError(f'Key "{our_key}" for source-address "{our_address}" ' \
- f'is already used for tunnel "{tunnel_if}"!')
+ f'is already used for tunnel "{o_tunnel}"!')
else:
our_source_if = dict_search('source_interface', tunnel)
their_source_if = dict_search('source_interface', o_tunnel_conf)