Skip to content

Commit 6e2a9d4

Browse files
committed
[airos][schema] add netmode property to airos schema
1 parent ac7f17d commit 6e2a9d4

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

netjsonconfig/backends/airos/schema.py

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,27 @@
3030
}
3131
}
3232

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+
3354
"""
3455
This schema override the possible encryption for AirOS from the default schema
3556
"""
@@ -67,4 +88,9 @@
6788
}
6889

6990

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

Comments
 (0)