diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-21 18:33:06 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-21 18:33:06 +0200 |
commit | 63cdf781f4604ed38591d0be71fa92ae3667da73 (patch) | |
tree | d8d41b5af8e683018898ef81367cd0a0cf0cb5f3 | |
parent | fe343f428a9740cdd3c6cf966f84238a14cd49fc (diff) | |
download | vyos-1x-63cdf781f4604ed38591d0be71fa92ae3667da73.tar.gz vyos-1x-63cdf781f4604ed38591d0be71fa92ae3667da73.zip |
bridge: T1556: remove superfluous if statements
-rwxr-xr-x | src/conf_mode/interface-bridge.py | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/conf_mode/interface-bridge.py b/src/conf_mode/interface-bridge.py index 543349e7b..65b5c4066 100755 --- a/src/conf_mode/interface-bridge.py +++ b/src/conf_mode/interface-bridge.py @@ -178,9 +178,6 @@ def get_config(): return bridge def verify(bridge): - if bridge is None: - return None - conf = Config() for br in conf.list_nodes('interfaces bridge'): # it makes no sense to verify ourself in this case @@ -195,15 +192,9 @@ def verify(bridge): return None def generate(bridge): - if bridge is None: - return None - return None def apply(bridge): - if bridge is None: - return None - cmd = '' if bridge['deleted']: # bridges need to be shutdown first |