Skip to content

Commit 92711b9

Browse files
committed
Closes #37
1 parent 5f8d729 commit 92711b9

File tree

4 files changed

+11
-11
lines changed

4 files changed

+11
-11
lines changed

apps/backup2graph/app/backup2graph.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ def generate_rel(key,rel_target_class):
158158
key += rel.Parent.ClassName + "-" + rel_target_class
159159

160160
# Handle the contracts in a special way and override the default file name and relationship direction.
161-
if rel.ClassName == 'fvRsProv':
162-
key += '-fvRsProv'
163-
edge_direction = '(s)-[r:{} {} ]->(t)'.format(rel.ClassName, ' {target: row[3] }')
164-
elif rel.ClassName == 'fvRsCons':
165-
key += '-fvRsCons'
161+
if rel.ClassName == 'fvRsProv' or rel.ClassName == 'vzRsAnyToProv':
162+
key += '-' + rel.ClassName
163+
elif rel.ClassName == 'fvRsCons' or rel.ClassName == 'vzRsAnyToCons':
164+
key += '-' + rel.ClassName
165+
edge_direction = '(t)-[r:{} {} ]->(s)'.format(rel.ClassName, ' {target: row[3] }')
166+
166167

167-
key += rel.Parent.ClassName + "-" + rel_target_class
168168

169169
if key not in data['non-parent-child-rel'].keys():
170170
data['non-parent-child-rel'][key] = []

charts/aci-monitoring-stack/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 0.2.4
18+
version: 0.2.5
1919
# This is the version number of the application being deployed. This version number should be
2020
# incremented each time you make changes to the application. Versions are not expected to
2121
# follow Semantic Versioning. They should reflect the version the application is using.
2222
# It is recommended to use it with quotes.
23-
appVersion: "v0.8.2"
23+
appVersion: "v0.8.3"
2424
dependencies:
2525
- name: prometheus
2626
version: "27.9.0"

charts/aci-monitoring-stack/dashboards/contracts-explorer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181
"targets": [
8282
{
8383
"Format": "table",
84-
"cypherQuery": "MATCH (provider)-[r1:fvRsProv]-(contract:vzBrCP)-[r2:fvRsCons]-(consumer)\nWHERE contract.dn=\"uni/tn-$tenant/brc-$contract\" and contract.fabric='$fabric'\n\nRETURN provider.dn as ProviderDN, consumer.dn as ConsumerDN",
84+
"cypherQuery": "MATCH (provider)-[r1:fvRsProv|vzRsAnyToProv]-(contract:vzBrCP)-[r2:fvRsCons|vzRsAnyToCons]-(consumer)\nWHERE contract.dn=\"uni/tn-$tenant/brc-$contract\" and contract.fabric='$fabric'\n\nRETURN provider.dn as ProviderDN, consumer.dn as ConsumerDN",
8585
"datasource": {
8686
"type": "kniepdennis-neo4j-datasource",
8787
"uid": "memgraph"
@@ -191,7 +191,7 @@
191191
"targets": [
192192
{
193193
"Format": "nodegraph",
194-
"cypherQuery": "MATCH (provider)-[r1:fvRsProv]-(contract:vzBrCP)-[r2:fvRsCons]-(consumer)\nWHERE contract.dn=\"uni/tn-$tenant/brc-$contract\" and contract.fabric='$fabric'\n\nRETURN *",
194+
"cypherQuery": "MATCH (provider)-[r1:fvRsProv|vzRsAnyToProv]-(contract:vzBrCP)-[r2:fvRsCons|vzRsAnyToCons]-(consumer)\nWHERE contract.dn=\"uni/tn-$tenant/brc-$contract\" and contract.fabric='$fabric'\n\nRETURN *",
195195
"datasource": {
196196
"type": "kniepdennis-neo4j-datasource",
197197
"uid": "memgraph"

charts/aci-monitoring-stack/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ backup2graph:
323323
nodeSelector: {}
324324
image:
325325
repository: quay.io/datacenter/backup2graph
326-
tag: v0.1.3
326+
tag: v0.1.4
327327
pullPolicy: Always
328328
memgraph:
329329
enabled: true

0 commit comments

Comments
 (0)