File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -149,6 +149,17 @@ std::set<std::string> MultiNodeUtil::getFabricConnectedSwitches(
149
149
return connectedSwitches;
150
150
}
151
151
152
+ bool MultiNodeUtil::verifyFabricConnectedSwitchesForRdsw (
153
+ int clusterId,
154
+ const std::string& rdswToVerify) {
155
+ // Every RDSW is connected to all FDSWs in its cluster
156
+ std::set<std::string> expectedConnectedSwitches (
157
+ clusterIdToFdsws_[clusterId].begin (), clusterIdToFdsws_[clusterId].end ());
158
+ auto gotConnectedSwitches = getFabricConnectedSwitches (rdswToVerify);
159
+
160
+ return expectedConnectedSwitches == gotConnectedSwitches;
161
+ }
162
+
152
163
std::set<std::string> MultiNodeUtil::getGlobalSystemPortsOfType (
153
164
const std::string& rdsw,
154
165
const std::set<RemoteSystemPortType>& types) {
Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ class MultiNodeUtil {
32
32
33
33
std::set<std::string> getFabricConnectedSwitches (
34
34
const std::string& switchName);
35
+ bool verifyFabricConnectedSwitchesForRdsw (
36
+ int clusterId,
37
+ const std::string& rdswToVerify);
35
38
36
39
std::set<std::string> getGlobalSystemPortsOfType (
37
40
const std::string& rdsw,
You can’t perform that action at this time.
0 commit comments