MetadataProvider - update index instance state according to topology

Change-Id: I4c3520e9ad4e9cc52e10e20be0a8d19a8f5ad9db