diff options
author | Davide Beatrici <davidebeatrici@gmail.com> | 2020-04-12 10:27:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-12 10:27:18 +0200 |
commit | 28af70c22ea0ed05d67af440d7284db663b82cc4 (patch) | |
tree | 9eca30893d5e24fad7a4052962aa7fbf1eb3dd05 /src/conf_mode/interfaces-wireless.py | |
parent | 23225b31139e3f45cced5041d6d230909bb9e3d6 (diff) | |
download | vyos-1x-28af70c22ea0ed05d67af440d7284db663b82cc4.tar.gz vyos-1x-28af70c22ea0ed05d67af440d7284db663b82cc4.zip |
wireless: T1627: typo bugfix for VLAN interfaces
The typos cause the configurator to throw an exception when a wireless VLAN is specified:
Traceback (most recent call last):
File "/usr/libexec/vyos/conf_mode/interfaces-wireless.py", line 1463, in <module>
apply(c)
File "/usr/libexec/vyos/conf_mode/interfaces-wireless.py", line 1433, in apply
vlan = e.add_vlan(vif['id'])
NameError: name 'e' is not defined
Diffstat (limited to 'src/conf_mode/interfaces-wireless.py')
-rwxr-xr-x | src/conf_mode/interfaces-wireless.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py index 98bb9bafc..037614194 100755 --- a/src/conf_mode/interfaces-wireless.py +++ b/src/conf_mode/interfaces-wireless.py @@ -777,7 +777,7 @@ def apply(wifi): # remove no longer required VLAN interfaces (vif) for vif in wifi['vif_remove']: - e.del_vlan(vif) + w.del_vlan(vif) # create VLAN interfaces (vif) for vif in wifi['vif']: @@ -787,11 +787,11 @@ def apply(wifi): try: # on system bootup the above condition is true but the interface # does not exists, which throws an exception, but that's legal - e.del_vlan(vif['id']) + w.del_vlan(vif['id']) except: pass - vlan = e.add_vlan(vif['id']) + vlan = w.add_vlan(vif['id']) apply_vlan_config(vlan, vif) # Enable/Disable interface - interface is always placed in |