Skip to content

Commit 262bc9f

Browse files
phlogistonjohnmergify[bot]
authored andcommitted
schema: schema updates for new interface filtering options
Signed-off-by: John Mulligan <[email protected]>
1 parent 323295c commit 262bc9f

File tree

3 files changed

+47
-0
lines changed

3 files changed

+47
-0
lines changed

sambacc/schema/conf-v0.schema.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,19 @@
256256
},
257257
"admin_password": {
258258
"type": "string"
259+
},
260+
"interfaces": {
261+
"type": "object",
262+
"properties": {
263+
"include_pattern": {
264+
"type": "string",
265+
"description": "A regular expression that must match for a system interface\nto be included in the AD DC interfaces list.\n"
266+
},
267+
"exclude_pattern": {
268+
"type": "string",
269+
"description": "A regular expression that must not match for a system interface\nto be included in the AD DC interfaces list.\n"
270+
}
271+
}
259272
}
260273
},
261274
"required": [

sambacc/schema/conf-v0.schema.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,19 @@ properties:
249249
type: string
250250
admin_password:
251251
type: string
252+
interfaces:
253+
type: object
254+
properties:
255+
include_pattern:
256+
type: string
257+
description: |
258+
A regular expression that must match for a system interface
259+
to be included in the AD DC interfaces list.
260+
exclude_pattern:
261+
type: string
262+
description: |
263+
A regular expression that must not match for a system interface
264+
to be included in the AD DC interfaces list.
252265
required:
253266
- realm
254267
additionalProperties: false

sambacc/schema/conf_v0_schema.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,27 @@
274274
"realm": {"type": "string"},
275275
"short_domain": {"type": "string"},
276276
"admin_password": {"type": "string"},
277+
"interfaces": {
278+
"type": "object",
279+
"properties": {
280+
"include_pattern": {
281+
"type": "string",
282+
"description": (
283+
"A regular expression that must match for"
284+
" a system interface\nto be included in"
285+
" the AD DC interfaces list.\n"
286+
),
287+
},
288+
"exclude_pattern": {
289+
"type": "string",
290+
"description": (
291+
"A regular expression that must not match"
292+
" for a system interface\nto be included"
293+
" in the AD DC interfaces list.\n"
294+
),
295+
},
296+
},
297+
},
277298
},
278299
"required": ["realm"],
279300
"additionalProperties": False,

0 commit comments

Comments
 (0)