We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac7f17d commit 6e2a9d4Copy full SHA for 6e2a9d4
1 file changed
netjsonconfig/backends/airos/schema.py
@@ -30,6 +30,27 @@
30
}
31
32
33
+"""
34
+This schema defines a new property for netjson
35
+
36
+As the antenna can be in ``bridge`` or ``router`` mode
37
+this mode can be selected from this property
38
39
40
+netmode_schema = {
41
+ "type": "object",
42
+ "properties": {
43
+ "netmode": {
44
+ "enum": [
45
+ "bridge",
46
+ "router",
47
+ ],
48
+ "default": "bridge",
49
+ "type": "string",
50
+ },
51
52
+ }
53
54
"""
55
This schema override the possible encryption for AirOS from the default schema
56
@@ -67,4 +88,9 @@
67
88
68
89
69
90
70
-schema = merge_config(default_schema, netconf_schema, wpasupplicant_schema)
91
+schema = merge_config(
92
+ default_schema,
93
+ netconf_schema,
94
+ netmode_schema,
95
+ wpasupplicant_schema,
96
+ )
0 commit comments