Skip to content

Commit

Permalink
[raspbian] Added macfilter and maclist to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
Ritwick DSouza committed Aug 10, 2017
1 parent c41edec commit 00bb133
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions netjsonconfig/backends/raspbian/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,49 @@

schema = merge_config(default_schema, {
"definitions": {
"ap_wireless_settings": {
"allOf": [
{
"properties": {
"macfilter": {
"type": "string",
"title": "MAC Filter",
"description": "specifies the mac filter policy, \"disable\" to disable "
"the filter, \"allow\" to treat it as whitelist or "
"\"deny\" to treat it as blacklist",
"enum": [
None,
"accept",
"deny",
],
"options": {
"enum_titles": [
"disabled",
"accept",
"deny"
]
},
"default": "disable",
"propertyOrder": 15,
},
"maclist": {
"type": "array",
"title": "MAC List",
"description": "mac addresses that will be filtered according to the policy "
"specified in the \"macfilter\" option",
"propertyOrder": 16,
"items": {
"type": "string",
"title": "MAC address",
"pattern": "^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$",
"minLength": 17,
"maxLength": 17,
}
}
}
}
]
},
"radio_hwmode_11g": {
"properties": {
"hwmode": {
Expand Down

0 comments on commit 00bb133

Please sign in to comment.