Support Silicon for retrieval of entity ownership information 14/98114/2
authorSangwook Ha <sangwook.ha@verizon.com>
Sun, 24 Oct 2021 23:56:45 +0000 (16:56 -0700)
committerSangwook Ha <sangwook.ha@verizon.com>
Mon, 25 Oct 2021 00:14:25 +0000 (17:14 -0700)
commit98aa061780a3c91ff90b01235b96fb776b3c8385
treef367ef0973440b04b226f000605aaf398f59d08d
parent0f3609949b4c0293e6922eaa1ff069e85670733e
Support Silicon for retrieval of entity ownership information

ClusterEntities.py uses RPC introduced in Phosphorus to retrieve
entity ownership information, hence Silicon or earlier versions,
which store entity ownership information in the data store,
are not supported.

Fall back on the REST API calls to retrieve the information from
the operational data store, if the status code for the RPC call is
400 (bad request), to support Silicon and earlier versions.

Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
Change-Id: I18c8d667554d25e5126770235ad33ff404cbe9fe
csit/libraries/ClusterEntities.py