blob: 2d96c523586659369c69cd6080b3b1e5135ca099 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
tosca_definitions_version: tosca_simple_yaml_1_1_0
policy_types:
onap.policies.controlloop.guard.common.Filter:
derived_from: onap.policies.controlloop.guard.Common
type_version: 1.0.0
version: 1.0.0
name: onap.policies.controlloop.guard.common.Filter
description: Supports filtering of A&AI entities such as vnf-id, type, service, geographic region, etc.
properties:
algorithm:
type: string
description: Designates the precendence of blacklist vs whitelist
required: true
default: blacklist-overrides
constraints:
- valid_values: ["blacklist-overrides", "whitelist-overrides"]
filters:
type: list
description: List of filters to be applied.
required: true
entry_schema:
type: onap.datatypes.guard.filter
data_types:
onap.datatypes.guard.filter:
derived_from: tosca.nodes.Root
properties:
field:
type: string
description: Name of the field to perform the filter on using the A&AI <node>.<property> syntax.
required: true
constraints:
- valid_values:
- generic-vnf.vnf-name
- generic-vnf.vnf-id
- generic-vnf.vnf-type
- generic-vnf.nf-naming-code
- vserver.vserver-id
- cloud-region.cloud-region-id
filter:
type: string
description: The filter value itself. For example, "RegionOne" "vFWCL*"
required: true
function:
type: string
description: The function applied to the filter.
required: true
constraints:
- valid_values:
- string-equal
- string-equal-ignore-case
- string-regexp-match
- string-contains
- string-greater-than
- string-greater-than-or-equal
- string-less-than
- string-less-than-or-equal
- string-starts-with
- string-ends-with
blacklist:
type: boolean
description: |
Indicates if the filter should be treated as a blacklist (true)
or whitelist (false).
required: true
default: true
|