summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-08-21 18:33:06 +0200
committerChristian Poessinger <christian@poessinger.com>2019-08-21 18:33:06 +0200
commit63cdf781f4604ed38591d0be71fa92ae3667da73 (patch)
treed8d41b5af8e683018898ef81367cd0a0cf0cb5f3 /src/conf_mode
parentfe343f428a9740cdd3c6cf966f84238a14cd49fc (diff)
downloadvyos-1x-63cdf781f4604ed38591d0be71fa92ae3667da73.tar.gz
vyos-1x-63cdf781f4604ed38591d0be71fa92ae3667da73.zip
bridge: T1556: remove superfluous if statements
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/interface-bridge.py9
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