[Cisco ACI] Fix TypeError when submitting APIC controller interface status #25744
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.39) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.39 · 266 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.334
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #25744"
general
weight: 0.35
HadhemiDD
What does this PR do?
Fixes a
TypeErrorin the Cisco ACI check whensend_ndm_metadatais enabled and an APIC controller reports physical interfaces (cnwPhysIf):#24707 removed the
hostnameparameter fromsubmit_interface_status_metricbut missed the call inprocess_cphys(added in #24193). This drops the leftover argument, matching #24707's intent; the metric keepsdevice_hostnameas a tag.Today every run aborts at the first APIC: fabric metrics for later nodes, capacity, faults, the NDM payload and check telemetry are skipped, and
cisco_aci.can_connectreports CRITICAL. Tenant metrics are unaffected.Tests never hit this because no fixture returns
cnwPhysIf. The new test returns one controller interface and asserts an OK service check, the controllerport.statusmetric with its tags, and the interface in the NDM payload. It fails on master.<img width="1934" height="986" alt="Image 10-22-26 at 12 20 AM" src="https://github.com/user-attachments/assets/0f880227-594a-45a9-97dc-c91db54e0092" />
Motivation
Reported after upgrading to Agent 7.84.3: all
cisco_aci.capacity.*metrics stopped. Affects cisco_aci 6.0.0 and 6.1.0 (Agent 7.84.x, 7.85.x).Related: #24707, #24193. Requesting backports to 7.85.x (7.85.0 is in RC with this bug; otherwise the fix waits for 7.86) and 7.84.x (affected customer is on 7.84; patch applies cleanly).
Checklist before requesting review
🤖 Generated with Claude Code