summaryrefslogtreecommitdiff
path: root/data/templates/wifi/crda.tmpl
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-24 22:00:36 +0200
committerChristian Poessinger <christian@poessinger.com>2020-07-25 17:30:12 +0200
commit79af6c7b35164d3313c39dff2bc1bffbb4b326cd (patch)
tree4bc224952303fcdfa9b64033eb222233dff87a6e /data/templates/wifi/crda.tmpl
parentee65528d720964cf77bc9b28e6f8fb19b9783066 (diff)
downloadvyos-1x-79af6c7b35164d3313c39dff2bc1bffbb4b326cd.tar.gz
vyos-1x-79af6c7b35164d3313c39dff2bc1bffbb4b326cd.zip
wireless: ifconfig: T2653: move to get_config_dict()
The current VyOS CLI parser code written in Python contains a ton of duplicates which I can also hold myself accountable for - or maybe mainly me - depends on the angle of judge.
Diffstat (limited to 'data/templates/wifi/crda.tmpl')
-rw-r--r--data/templates/wifi/crda.tmpl4
1 files changed, 1 insertions, 3 deletions
diff --git a/data/templates/wifi/crda.tmpl b/data/templates/wifi/crda.tmpl
index 750ad86ee..6cd125e37 100644
--- a/data/templates/wifi/crda.tmpl
+++ b/data/templates/wifi/crda.tmpl
@@ -1,3 +1 @@
-{%- if regdom -%}
-REGDOMAIN={{ regdom }}
-{% endif %}
+{{ 'REGDOMAIN=' + regdom if regdom is defined }}