diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-08 07:02:14 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-04-08 07:02:14 +0200 |
commit | 3d65f12e38f721ae37b65e058f0c59a24d6a6886 (patch) | |
tree | f671e3a40c4ab0afff006e1deafb122b80e5b7ad | |
parent | 0587839ebead40290c97aeb713e8b47148e146c4 (diff) | |
download | vyos-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-x | src/conf_mode/interfaces-wireless.py | 2 | ||||
-rwxr-xr-x | src/conf_mode/interfaces-wirelessmodem.py | 2 |
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 |