diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-03-22 15:38:31 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-03-22 15:42:20 +0100 |
commit | ca7652e66f23bff6dc5a7e03fb44370191304b6f (patch) | |
tree | 6df7912bd31e2dc9804c235c461b7554e806af86 | |
parent | fdafecc0c569f7d5f818a5a2c56bf7ea1983d2f4 (diff) | |
download | vyos-1x-ca7652e66f23bff6dc5a7e03fb44370191304b6f.tar.gz vyos-1x-ca7652e66f23bff6dc5a7e03fb44370191304b6f.zip |
wireless: T1627: bugfix reading physical-interface to config
-rwxr-xr-x | src/conf_mode/interfaces-wireless.py | 8 |
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') |