aboutsummaryrefslogtreecommitdiffstats
path: root/app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py
diff options
context:
space:
mode:
authoryayogev <yaronyogev@gmail.com>2017-08-13 19:53:55 +0300
committeryayogev <yaronyogev@gmail.com>2017-08-13 19:53:55 +0300
commit39e971ab1209c817ed2fcf8f060e87fd402a72a4 (patch)
tree06e22b3082d397922d8cb8fb9b16549da164f2a5 /app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py
parent8a5a2f85698721274b166daaa8f3204712baa943 (diff)
set 'switch' attribute in switch objects
need to have 'switch' attribute so the switch objects are contained in the grouping by switch in the UI Change-Id: I77071c6b0e7bdfc495e0d6708bfa1aec96b10532 Signed-off-by: yayogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py')
-rw-r--r--app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py b/app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py
index d400007..92aa793 100644
--- a/app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py
+++ b/app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py
@@ -107,6 +107,7 @@ class AciFetchLeafToSpinePnics(AciAccess):
spine_json = {
"id": db_spine_id,
"type": "switch",
+ "switch": db_spine_id,
"aci_document": spine
}
# Region name is the same as region id