Add to aai-common query builder get parent step
[aai/aai-common.git] / aai-core / src / test / resources / dbedgerules / DbEdgeRules_TraversalQueryTest.json
1 {
2         "rules": [
3                 {
4                         "from": "generic-vnf",
5                         "to": "vnfc",
6                         "label": "uses",
7                         "direction": "OUT",
8                         "multiplicity": "ONE2MANY",
9                         "contains-other-v": "NONE",
10                         "delete-other-v": "${direction}",
11                         "SVC-INFRA": "${direction}",
12                         "prevent-delete": "NONE",
13                         "default": "true",
14                         "description": "Hard to describe"
15                 },
16                 {
17                         "from": "vnfc",
18                         "to": "generic-vnf",
19                         "label": "re-uses",
20                         "direction": "OUT",
21                         "multiplicity": "ONE2MANY",
22                         "contains-other-v": "NONE",
23                         "delete-other-v": "${direction}",
24                         "SVC-INFRA": "${direction}",
25                         "prevent-delete": "NONE",
26                         "description": "Hard to describe"
27                 },
28                 {
29                         "from": "vce",
30                         "to": "vnfc",
31                         "label": "vce-vnfc",
32                         "direction": "OUT",
33                         "multiplicity": "ONE2MANY",
34                         "contains-other-v": "NONE",
35                         "delete-other-v": "${direction}",
36                         "SVC-INFRA": "${direction}",
37                         "prevent-delete": "NONE",
38                         "default": "true",
39                         "description": "Hard to describe"
40                 },
41                 {
42                         "from": "pserver",
43                         "to": "vce",
44                         "label": "pserver-vce",
45                         "direction": "OUT",
46                         "multiplicity": "ONE2MANY",
47                         "contains-other-v": "NONE",
48                         "delete-other-v": "${direction}",
49                         "SVC-INFRA": "${direction}",
50                         "prevent-delete": "NONE",
51                         "default": "true",
52                         "description": "Hard to describe"
53                 },
54                 {
55                         "from": "generic-vnf",
56                         "to": "pserver",
57                         "label": "generic-vnf-pserver-A",
58                         "direction": "OUT",
59                         "multiplicity": "ONE2MANY",
60                         "contains-other-v": "NONE",
61                         "delete-other-v": "${direction}",
62                         "SVC-INFRA": "${direction}",
63                         "prevent-delete": "NONE",
64                         "default": "true",
65                         "description": "Hard to describe"
66                 },
67                 {
68                         "from": "generic-vnf",
69                         "to": "pserver",
70                         "label": "generic-vnf-pserver-B",
71                         "direction": "OUT",
72                         "multiplicity": "ONE2MANY",
73                         "contains-other-v": "NONE",
74                         "delete-other-v": "${direction}",
75                         "SVC-INFRA": "${direction}",
76                         "prevent-delete": "NONE",
77                         "description": "Hard to describe"
78                 },
79                 {
80                         "from": "complex",
81                         "to": "generic-vnf",
82                         "label": "complex-generic-vnf-A",
83                         "direction": "OUT",
84                         "multiplicity": "ONE2MANY",
85                         "contains-other-v": "NONE",
86                         "delete-other-v": "${direction}",
87                         "SVC-INFRA": "${direction}",
88                         "prevent-delete": "NONE",
89                         "default": "true",
90                         "description": "Hard to describe"
91                 },
92                 {
93                         "from": "complex",
94                         "to": "generic-vnf",
95                         "label": "complex-generic-vnf-B",
96                         "direction": "OUT",
97                         "multiplicity": "ONE2MANY",
98                         "contains-other-v": "NONE",
99                         "delete-other-v": "${direction}",
100                         "SVC-INFRA": "${direction}",
101                         "prevent-delete": "NONE",
102                         "description": "Hard to describe"
103                 },
104                 {
105                         "from": "l-interface",
106                         "to": "logical-link",
107                         "label": "usesLogicalLink",
108                         "direction": "OUT",
109                         "multiplicity": "MANY2MANY",
110                         "contains-other-v": "NONE",
111                         "delete-other-v": "${direction}",
112                         "SVC-INFRA": "${direction}",
113                         "prevent-delete": "NONE",
114                         "default": "true",
115                         "description": "Hard to describe"
116                 },
117                 {
118                         "from": "l-interface",
119                         "to": "logical-link",
120                         "label": "sourceLInterface",
121                         "direction": "OUT",
122                         "multiplicity": "MANY2MANY",
123                         "contains-other-v": "NONE",
124                         "delete-other-v": "${direction}",
125                         "SVC-INFRA": "${direction}",
126                         "prevent-delete": "NONE",
127                         "default": "false",
128                         "description": "Hard to describe"
129                 },
130                 {
131                         "from": "l-interface",
132                         "to": "logical-link",
133                         "label": "targetLInterface",
134                         "direction": "OUT",
135                         "multiplicity": "MANY2MANY",
136                         "contains-other-v": "NONE",
137                         "delete-other-v": "${direction}",
138                         "SVC-INFRA": "${direction}",
139                         "prevent-delete": "NONE",
140                         "default": "false",
141                         "description": "Hard to describe"
142                 },      
143                 {
144                         "from": "pserver",
145                         "to": "vnfc",
146                         "label": "uses",
147                         "direction": "OUT",
148                         "multiplicity": "ONE2MANY",
149                         "contains-other-v": "NONE",
150                         "delete-other-v": "${direction}",
151                         "SVC-INFRA": "${direction}",
152                         "prevent-delete": "NONE",
153                         "default": "true",
154                         "description": "Hard to describe"
155                 },
156                 {
157                         "from": "l-interface",
158                         "to": "p-interface",
159                         "label": "tosca.relationships.network.BindsTo",
160                         "direction": "OUT",
161                         "multiplicity": "MANY2ONE",
162                         "contains-other-v": "!${direction}",
163                         "SVC-INFRA": "${direction}",
164                         "delete-other-v": "!${direction}",
165                         "prevent-delete": "NONE",
166                         "default": "true"
167                 }
168         ]
169 }