Add inaccessible_subnet_groups config value

This commit is contained in:
Itay Mizeretz 2018-02-21 12:55:36 +02:00
parent d3ce956224
commit 7111f5b0e2
3 changed files with 24 additions and 0 deletions

View File

@ -184,6 +184,7 @@ class Configuration(object):
range_class = FixedRange
range_fixed = ['', ]
inaccessible_subnet_groups = []
blocked_ips = ['', ]

View File

@ -11,6 +11,7 @@
"range_fixed": [
""
],
"inaccessible_subnet_groups": [],
"blocked_ips": [""],
"current_server": "41.50.73.31:5000",
"alive": true,

View File

@ -235,6 +235,28 @@ SCHEMA = {
"List of IPs/subnets to include when using FixedRange"
" (Only relevant for Fixed Range)."
" Examples: \"192.168.0.1\", \"192.168.0.5-192.168.0.20\", \"192.168.0.5/24\""
},
"inaccessible_subnet_groups": {
"title": "Inaccessible IP/subnet groups",
"type": "array",
"uniqueItems": True,
"items": {
"type": "array",
"title": "Subnet group",
"items": {
"type": "string"
},
"minItems": 2,
"uniqueItems": True,
"description": "List of IPs/subnets."
" Examples: \"192.168.0.1\", \"192.168.0.5-192.168.0.20\","
" \"192.168.0.5/24\""
},
"default": [
],
"description":
"List of IP/subnet groups. Each group should consist of subnets that aren't supposed"
" to be accessible to one another."
}
}
}