9888ed76f8e8df86b5576b35eb1d7ea2a5f02b68
[aai/aai-common.git] / aai-core / src / test / resources / dbedgerules / DbEdgeRules_test.json
1 {
2         "rules": [
3                 {
4                         "from": "foo",
5                         "to": "bar",
6                         "label": "eats",
7                         "direction": "OUT",
8                         "multiplicity": "One2Many",
9                         "contains-other-v": "NONE",
10                         "delete-other-v": "${direction}",
11                         "SVC-INFRA": "NONE",
12                         "prevent-delete": "NONE",
13                         "description": "Hard to describe"
14                 },
15                 {
16                         "from": "foo",
17                         "to": "bar",
18                         "label": "eatz",
19                         "direction": "IN",
20                         "multiplicity": "One2Many",
21                         "contains-other-v": "NONE",
22                         "delete-other-v": "${direction}",
23                         "SVC-INFRA": "NONE",
24                         "prevent-delete": "NONE",
25                         "description": "Hard to describe"
26                 },
27                 {
28                         "from": "foo",
29                         "to": "baz",
30                         "label": "isVeryHappyAbout",
31                         "direction": "OUT",
32                         "multiplicity": "One2Many",
33                         "contains-other-v": "${direction}",
34                         "delete-other-v": "${direction}",
35                         "SVC-INFRA": "NONE",
36                         "prevent-delete": "NONE",
37                         "description": "Hard to describe"
38                 },
39                 {
40                         "from": "quux",
41                         "to": "foo",
42                         "label": "dancesWith",
43                         "direction": "IN",
44                         "multiplicity": "One2Many",
45                         "contains-other-v": "!${direction}",
46                         "delete-other-v": "${direction}",
47                         "SVC-INFRA": "NONE",
48                         "prevent-delete": "NONE",
49                         "description": "Hard to describe"
50                 },
51                 {
52                         "from": "test-parent",
53                         "to": "test-child",
54                         "label": "has",
55                         "direction": "OUT",
56                         "multiplicity": "One2Many",
57                         "contains-other-v": "${direction}",
58                         "delete-other-v": "NONE",
59                         "SVC-INFRA": "NONE",
60                         "prevent-delete": "NONE",
61                         "description": "Hard to describe"
62                 },
63                 {
64                         "from": "test-cousin",
65                         "to": "test-child",
66                         "label": "annoys",
67                         "direction": "OUT",
68                         "multiplicity": "One2Many",
69                         "contains-other-v": "NONE",
70                         "delete-other-v": "${direction}",
71                         "SVC-INFRA": "NONE",
72                         "prevent-delete": "NONE",
73                         "description": "Hard to describe"
74                 },
75                 {
76                         "from": "test-child",
77                         "to": "test-grandchild",
78                         "label": "has",
79                         "direction": "OUT",
80                         "multiplicity": "One2Many",
81                         "contains-other-v": "${direction}",
82                         "delete-other-v": "${direction}",
83                         "SVC-INFRA": "NONE",
84                         "prevent-delete": "NONE",
85                         "description": "Hard to describe"
86                 },
87                 {
88                         "from": "a",
89                         "to": "b",
90                         "label": "c",
91                         "direction": "OUT",
92                         "multiplicity": "One2Many",
93                         "contains-other-v": "NONE",
94                         "delete-other-v": "${direction}",
95                         "SVC-INFRA": "NONE",
96                         "prevent-delete": "NONE",
97                         "default": "false",
98                         "description": "Hard to describe"
99                 },
100                 {
101                         "from": "a",
102                         "to": "b",
103                         "label": "d",
104                         "direction": "IN",
105                         "multiplicity": "One2Many",
106                         "contains-other-v": "NONE",
107                         "delete-other-v": "${direction}",
108                         "SVC-INFRA": "NONE",
109                         "prevent-delete": "NONE",
110                         "default" : "true",
111                         "description": "Hard to describe"
112                 },
113                                 {
114                         "from": "z",
115                         "to": "y",
116                         "label": "x",
117                         "direction": "OUT",
118                         "multiplicity": "One2Many",
119                         "contains-other-v": "NONE",
120                         "delete-other-v": "${direction}",
121                         "SVC-INFRA": "NONE",
122                         "prevent-delete": "NONE",
123                         "description": "Hard to describe"
124                 },
125                 {
126                         "from": "y",
127                         "to": "z",
128                         "label": "w",
129                         "direction": "IN",
130                         "multiplicity": "One2Many",
131                         "contains-other-v": "NONE",
132                         "delete-other-v": "${direction}",
133                         "SVC-INFRA": "NONE",
134                         "prevent-delete": "NONE",
135                         "default" : "true",
136                         "description": "Hard to describe"
137                 },
138                 {
139                         "from": "generic-vnf",
140                         "to": "vnfc",
141                         "label": "uses",
142                         "direction": "OUT",
143                         "multiplicity": "ONE2MANY",
144                         "contains-other-v": "NONE",
145                         "delete-other-v": "${direction}",
146                         "SVC-INFRA": "${direction}",
147                         "prevent-delete": "NONE",
148                         "default": "true",
149                         "description": "Hard to describe"
150                 },
151                 {
152                         "from": "generic-vnf",
153                         "to": "vnfc",
154                         "label": "re-uses",
155                         "direction": "OUT",
156                         "multiplicity": "ONE2MANY",
157                         "contains-other-v": "NONE",
158                         "delete-other-v": "${direction}",
159                         "SVC-INFRA": "${direction}",
160                         "prevent-delete": "NONE",
161                         "description": "Hard to describe"
162                 },
163                 {
164                         "from": "generic-vnf",
165                         "to": "vnfc",
166                         "label": "over-uses",
167                         "direction": "OUT",
168                         "multiplicity": "ONE2MANY",
169                         "contains-other-v": "NONE",
170                         "delete-other-v": "${direction}",
171                         "SVC-INFRA": "${direction}",
172                         "prevent-delete": "NONE",
173                         "description": "Hard to describe",
174                         "prevent-delete": "NONE"
175                 },
176                 {
177                         "from": "l-interface",
178                         "to": "logical-link",
179                         "label": "usesLogicalLink",
180                         "direction": "OUT",
181                         "multiplicity": "Many2Many",
182                         "contains-other-v": "NONE",
183                         "delete-other-v": "${direction}",
184                         "SVC-INFRA": "${direction}",
185                         "prevent-delete": "NONE"
186                 },
187                 {
188                         "from": "generic-vnf",
189                         "to": "l-interface",
190                         "label": "hasLInterface",
191                         "direction": "OUT",
192                         "multiplicity": "Many2Many",
193                         "contains-other-v": "${direction}",
194                         "delete-other-v": "NONE",
195                         "SVC-INFRA": "${direction}",
196                         "prevent-delete": "NONE"
197                 }
198         ]
199 }