diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-10-31 14:50:47 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-10-31 14:50:47 +0100 |
commit | e482377b29df05e60dbdb31d6276ae2030ffa2f9 (patch) | |
tree | 7576068d666a6ee2d0d3eaf40019a0b643fdf041 /src/conf_mode | |
parent | 893dd69d975c309bfd09976e776c5fa9a5932ef9 (diff) | |
download | vyos-1x-e482377b29df05e60dbdb31d6276ae2030ffa2f9.tar.gz vyos-1x-e482377b29df05e60dbdb31d6276ae2030ffa2f9.zip |
tunnel: T3956: GRE key check must not be run on our own interface instance
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-x | src/conf_mode/interfaces-tunnel.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py index 4db564e6d..2798d321f 100755 --- a/src/conf_mode/interfaces-tunnel.py +++ b/src/conf_mode/interfaces-tunnel.py @@ -87,6 +87,10 @@ def verify(tunnel): # Check pairs tunnel source-address/encapsulation/key with exists tunnels. # Prevent the same key for 2 tunnels with same source-address/encap. T2920 for tunnel_if in Section.interfaces('tunnel'): + # It makes no sense to run the test for re-used GRE keys on our + # own interface we are currently working on + if tunnel['ifname'] == tunnel_if: + continue tunnel_cfg = get_interface_config(tunnel_if) # no match on encapsulation - bail out if dict_search('linkinfo.info_kind', tunnel_cfg) != tunnel['encapsulation']: |