summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-03-22 15:38:31 +0100
committerChristian Poessinger <christian@poessinger.com>2020-03-22 15:42:20 +0100
commitca7652e66f23bff6dc5a7e03fb44370191304b6f (patch)
tree6df7912bd31e2dc9804c235c461b7554e806af86
parentfdafecc0c569f7d5f818a5a2c56bf7ea1983d2f4 (diff)
downloadvyos-1x-ca7652e66f23bff6dc5a7e03fb44370191304b6f.tar.gz
vyos-1x-ca7652e66f23bff6dc5a7e03fb44370191304b6f.zip
wireless: T1627: bugfix reading physical-interface to config
-rwxr-xr-xsrc/conf_mode/interfaces-wireless.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/interfaces-wireless.py b/src/conf_mode/interfaces-wireless.py
index 19e1f01b8..40ee2b418 100755
--- a/src/conf_mode/interfaces-wireless.py
+++ b/src/conf_mode/interfaces-wireless.py
@@ -1144,6 +1144,10 @@ def get_config():
if conf.exists('ip enable-arp-ignore'):
wifi['ip_enable_arp_ignore'] = 1
+ # Wireless physical device
+ if conf.exists('physical-device'):
+ wifi['phy'] = conf.return_value('physical-device')
+
# Media Access Control (MAC) address
if conf.exists('mac'):
wifi['mac'] = conf.return_value('mac')
@@ -1164,10 +1168,6 @@ def get_config():
if conf.exists('vrf'):
wifi['vrf'] = conf.return_value('vrf')
- # Wireless physical device
- if conf.exists('phy'):
- wifi['phy'] = conf.return_value('phy')
-
# Transmission power reduction in dBm
if conf.exists('reduce-transmit-power'):
wifi['reduce_transmit_power'] = conf.return_value('reduce-transmit-power')