summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-04-08 07:02:14 +0200
committerChristian Poessinger <christian@poessinger.com>2020-04-08 07:02:14 +0200
commit3d65f12e38f721ae37b65e058f0c59a24d6a6886 (patch)
treef671e3a40c4ab0afff006e1deafb122b80e5b7ad
parent0587839ebead40290c97aeb713e8b47148e146c4 (diff)
downloadvyos-1x-3d65f12e38f721ae37b65e058f0c59a24d6a6886.tar.gz
vyos-1x-3d65f12e38f721ae37b65e058f0c59a24d6a6886.zip
bridge: T2232: bugfix wifi and wwan verify() section
Commit fcce471 ("bridge: T2232: prevent deletion of enslaved interfaces") added a regression by referencing a wrong variable name.
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py2
-rwxr-xr-xsrc/conf_mode/interfaces-wirelessmodem.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 4c70b1478..709085b0f 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -554,7 +554,7 @@ def get_config():
def verify(wifi):
if wifi['deleted']:
- interface = wifi['intfc']
+ interface = wifi['intf']
is_member, bridge = is_bridge_member(interface)
if is_member:
# can not use a f'' formatted-string here as bridge would not get
diff --git a/src/conf_mode/interfaces-wirelessmodem.py b/src/conf_mode/interfaces-wirelessmodem.py
index a93b20d27..49445aaa4 100755
--- a/src/conf_mode/interfaces-wirelessmodem.py
+++ b/src/conf_mode/interfaces-wirelessmodem.py
@@ -115,7 +115,7 @@ def get_config():
def verify(wwan):
if wwan['deleted']:
- interface = wwan['intfc']
+ interface = wwan['intf']
is_member, bridge = is_bridge_member(interface)
if is_member:
# can not use a f'' formatted-string here as bridge would not get