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_class = FixedRange
range_fixed = ['', ] range_fixed = ['', ]
inaccessible_subnet_groups = []
blocked_ips = ['', ] blocked_ips = ['', ]

View File

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

View File

@ -235,6 +235,28 @@ SCHEMA = {
"List of IPs/subnets to include when using FixedRange" "List of IPs/subnets to include when using FixedRange"
" (Only relevant for Fixed Range)." " (Only relevant for Fixed Range)."
" Examples: \"192.168.0.1\", \"192.168.0.5-192.168.0.20\", \"192.168.0.5/24\"" " 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."
} }
} }
} }