Conversation
Greptile SummaryThis PR adds support for trimming upper network tiers (spine and/or core switch levels) from the three-tier topology graph, configurable via a new All previously raised review concerns have been addressed in this revision:
Remaining concern:
Confidence Score: 4/5
Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[HTTP/gRPC Request\nwith trimTiers param] --> B{Provider type?}
B -- Real provider --> C[Loader\nGetTrimTiers validates 0-2\nstores in baseProvider.trimTiers]
B -- Sim provider --> D[LoaderSim\nGetSimulationParams via mapstructure\np.TrimTiers - no range check]
C --> E[GenerateTopologyConfig]
D --> E
E --> F[ClusterTopology.ToThreeTierGraph\nprovider, cis, trimTiers, normalize]
F --> G[trimmedTiers helper\nreturns local copy of tier IDs\nzeros out top N entries]
G --> H{swID empty?}
H -- yes --> I[skip - tier trimmed from graph]
H -- no --> J[add switch vertex to tree]
J --> K[Return Vertex tree\nwithout trimmed upper tiers]
I --> K
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #233 +/- ##
==========================================
- Coverage 66.99% 66.96% -0.04%
==========================================
Files 82 82
Lines 4572 4646 +74
==========================================
+ Hits 3063 3111 +48
- Misses 1398 1424 +26
Partials 111 111 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
2043ae3 to
e4d05d5
Compare
Signed-off-by: Dmitry Shmulevich <dshmulevich@nvidia.com>
No description provided.