Update topology config check
A more accurate measure of if we have correctly created links to all detected Frus is to ensure the Frus reachable from root node in the topology config matches the detected Frus in the FruTable and all sub-frus. We create a set of expected Fru objects to be traversed and ensure that all are reachable from the root node in the TopologyConfig.
This avoids store being created when there are nodes without Upstream/Downstream connections and are therefore not part of the topology.
This also simplifies the check implemented in cl/744087916 and cl/744087916 into one check.
#tlbmc
PiperOrigin-RevId: 744903038
Change-Id: I6ea25dec731c46f208ea97fa21cf62cfc0570553
1 file changed