diff options
author | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-18 17:41:35 +0100 |
---|---|---|
committer | Thomas Mangin <thomas.mangin@exa.net.uk> | 2020-05-18 17:41:35 +0100 |
commit | 4d0c5c848fda305055b71abf63ccd18478586694 (patch) | |
tree | 5851f1adf33c18f94a16c71f8b01175e0d43e428 /src/conf_mode/interfaces-tunnel.py | |
parent | 1e4dd009d711f24c504e0a6b61c5aefd37dcd6ce (diff) | |
download | vyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.tar.gz vyos-1x-4d0c5c848fda305055b71abf63ccd18478586694.zip |
flake8: T2475: fix a number of issue reported by flake8
Diffstat (limited to 'src/conf_mode/interfaces-tunnel.py')
-rwxr-xr-x | src/conf_mode/interfaces-tunnel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-tunnel.py b/src/conf_mode/interfaces-tunnel.py index 5261b6e7d..8e9bb069e 100755 --- a/src/conf_mode/interfaces-tunnel.py +++ b/src/conf_mode/interfaces-tunnel.py @@ -222,7 +222,7 @@ class ConfigurationState(Config): remove all the values which were not changed from the default """ for option in options: - if self.exists(option) and self_return_value(option) != self.default[option]: + if self.exists(option) and self.self_return_value(option) != self.default[option]: continue del self.options[option] @@ -555,7 +555,7 @@ def verify(conf): # source-interface check if tun_dev and tun_dev not in options['interfaces']: - raise ConfigError(f'device "{dev}" does not exist') + raise ConfigError(f'device "{tun_dev}" does not exist') # tunnel encapsulation check |