Skip to content

Commit 98c919e

Browse files
author
Ritwick DSouza
committed
[raspbian] Added macfilter and maclist to schema
1 parent ae16a60 commit 98c919e

1 file changed

Lines changed: 43 additions & 0 deletions

File tree

netjsonconfig/backends/raspbian/schema.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,49 @@
66

77
schema = merge_config(default_schema, {
88
"definitions": {
9+
"ap_wireless_settings": {
10+
"allOf": [
11+
{
12+
"properties": {
13+
"macfilter": {
14+
"type": "string",
15+
"title": "MAC Filter",
16+
"description": "specifies the mac filter policy, \"disable\" to disable "
17+
"the filter, \"allow\" to treat it as whitelist or "
18+
"\"deny\" to treat it as blacklist",
19+
"enum": [
20+
None,
21+
"accept",
22+
"deny",
23+
],
24+
"options": {
25+
"enum_titles": [
26+
"disabled",
27+
"accept",
28+
"deny"
29+
]
30+
},
31+
"default": "disable",
32+
"propertyOrder": 15,
33+
},
34+
"maclist": {
35+
"type": "array",
36+
"title": "MAC List",
37+
"description": "mac addresses that will be filtered according to the policy "
38+
"specified in the \"macfilter\" option",
39+
"propertyOrder": 16,
40+
"items": {
41+
"type": "string",
42+
"title": "MAC address",
43+
"pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$",
44+
"minLength": 17,
45+
"maxLength": 17,
46+
}
47+
}
48+
}
49+
}
50+
]
51+
},
952
"radio_hwmode_11g": {
1053
"properties": {
1154
"hwmode": {

0 commit comments

Comments
 (0)