From 39e971ab1209c817ed2fcf8f060e87fd402a72a4 Mon Sep 17 00:00:00 2001 From: yayogev Date: Sun, 13 Aug 2017 19:53:55 +0300 Subject: 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 --- app/discover/fetchers/aci/aci_fetch_leaf_to_spine_pnics.py | 1 + app/discover/fetchers/aci/aci_fetch_switch_pnic.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'app/discover') 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 diff --git a/app/discover/fetchers/aci/aci_fetch_switch_pnic.py b/app/discover/fetchers/aci/aci_fetch_switch_pnic.py index b888af4..24dd3ba 100644 --- a/app/discover/fetchers/aci/aci_fetch_switch_pnic.py +++ b/app/discover/fetchers/aci/aci_fetch_switch_pnic.py @@ -101,7 +101,7 @@ class AciFetchSwitchPnic(AciAccess): "id": db_leaf_id, "ip_address": leaf_data["address"], "type": "switch", - "host": db_leaf_id, + "switch": db_leaf_id, "aci_document": leaf_data } # Region name is the same as region id -- cgit 1.2.3-korg