Skip to content

Commit 775707c

Browse files
Merge branch 'master' into openwrt-firewall
2 parents 89a4bed + 0b598e1 commit 775707c

7 files changed

Lines changed: 46 additions & 3 deletions

File tree

CHANGES.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
Change log
22
==========
33

4+
Version 0.9.1 [2020-02-15]
5+
--------------------------
6+
7+
- [fix] Removed ``mtu_disc`` from ``auto_client`` method because it causes
8+
issues on most OpenWRT systems
9+
- [fix] Avoided maxLength on PIN property to allow configuration variables
10+
- [change] Add missing TLS ciphers to OpenVPN
11+
412
Version 0.9.0 [2020-11-18]
513
--------------------------
614

docs/source/backends/openwrt.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1353,7 +1353,7 @@ also requires setting the following additional options for each radio in the lis
13531353
+--------------+---------+-----------------------------------------------+
13541354
| key name | type | allowed values |
13551355
+==============+=========+===============================================+
1356-
| ``driver`` | string | mac80211, madwifi, ath5k, ath9k, broadcom |
1356+
| ``driver`` | string | mac80211, atheros, ath5k, ath9k, broadcom |
13571357
+--------------+---------+-----------------------------------------------+
13581358
| ``protocol`` | string | 802.11a, 802.11b, 802.11g, 802.11n, 802.11ac |
13591359
+--------------+---------+-----------------------------------------------+

netjsonconfig/backends/openvpn/schema.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,16 +111,19 @@
111111
"AES-128-CFB",
112112
"AES-128-CFB1",
113113
"AES-128-CFB8",
114+
"AES-128-GCM",
114115
"AES-128-OFB",
115116
"AES-192-CBC",
116117
"AES-192-CFB",
117118
"AES-192-CFB1",
118119
"AES-192-CFB8",
120+
"AES-192-GCM",
119121
"AES-192-OFB",
120122
"AES-256-CBC",
121123
"AES-256-CFB",
122124
"AES-256-CFB1",
123125
"AES-256-CFB8",
126+
"AES-256-GCM",
124127
"AES-256-OFB",
125128
"BF-CBC",
126129
"BF-CFB",

netjsonconfig/backends/openwrt/converters/radios.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ def __intermediate_radio(self, radio):
2828
# determine channel width
2929
if radio['type'] == 'mac80211':
3030
radio['htmode'] = self.__intermediate_htmode(radio)
31+
else:
32+
del radio['protocol']
3133
# ensure country is uppercase
3234
if 'country' in radio:
3335
radio['country'] = radio['country'].upper()

netjsonconfig/backends/openwrt/schema.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@
236236
"properties": {
237237
"driver": {
238238
"type": "string",
239-
"enum": ["mac80211", "madwifi", "ath5k", "ath9k", "broadcom"],
239+
"enum": ["mac80211", "atheros", "ath5k", "ath9k", "broadcom"],
240240
"default": default_radio_driver,
241241
"propertyOrder": 2,
242242
}

netjsonconfig/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VERSION = (0, 9, 0, 'final')
1+
VERSION = (0, 9, 1, 'final')
22
__version__ = VERSION
33

44

tests/openwrt/test_radio.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,36 @@ def test_render_radio_list_option(self):
617617
)
618618
self.assertEqual(o.render(), expected)
619619

620+
def test_render_atheros_driver(self):
621+
expected = self._tabs(
622+
"""package wireless
623+
624+
config wifi-device 'wifi0'
625+
option channel '6'
626+
option channel_width '20'
627+
option disabled '0'
628+
option hwmode '11g'
629+
option phy 'wifi0'
630+
option type 'atheros'
631+
"""
632+
)
633+
o = OpenWrt(
634+
{
635+
"radios": [
636+
{
637+
"protocol": "802.11g",
638+
"name": "wifi0",
639+
"phy": "wifi0",
640+
"channel": 6,
641+
"channel_width": 20,
642+
"disabled": False,
643+
"driver": "atheros",
644+
}
645+
]
646+
}
647+
)
648+
self.assertEqual(o.render(), expected)
649+
620650
def test_parse_radio_list_option(self):
621651
native = self._tabs(
622652
"""package wireless

0 commit comments

Comments
 (0)