Skip to content

Commit 539d8ff

Browse files
committed
[airos] added snippet for the undecided about authentication encryption
1 parent 42e9867 commit 539d8ff

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/source/backends/airos.rst

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -259,12 +259,31 @@ And another that set the authentication protocol to WPA2 enterprise, but this is
259259
{
260260
"name": "wlan0",
261261
"type": "wireless",
262-
"encryption": {
263-
"protocol": "wpa2_enterprise",
264-
"key": "changeme"
262+
"wireless": {
263+
"encryption": {
264+
"protocol": "wpa2_enterprise",
265+
"key": "changeme"
266+
}
265267
}
266268
}
267269
]
268270
}
269271
272+
The ``encryption`` property **must** be specified otherwise you will experience a ``ValidationError``, if you are not sure on what you want
273+
use this snippet to set to no encryption
274+
275+
.. code-block:: json
276+
277+
{
278+
"interfaces": [
279+
{
280+
"name": "wlan0",
281+
"type": "wireless",
282+
"wireless": {
283+
"encryption": {
284+
"protocol": "none"
285+
}
286+
}
287+
}
288+
}
270289
Leaving the `NetJSON Encryption object <http://netjson.org/rfc.html#rfc.section.5.4.2.1>` empty defaults to no encryption at all.

0 commit comments

Comments
 (0)