-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix(inputs.cisco_telemetry_mdt): Handle NXOS DME subtree telemetry format #15923
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @yusufshalaby for your fix! I'm not sure I understand why your code-change should fix the issue? In principle your only actual modification is to delete the dn
tag or am I getting this wrong?
Hi @srebhan, thanks for reviewing this fix! The main modification is that I'm setting the [
{
"descr": "this is eth1/1",
"dn": "sys/intf/phys-[eth1/1]",
"id": "eth1/1"
},
{
"descr": "this is eth1/2",
"dn": "sys/intf/phys-[eth1/2]",
"id": "eth1/2"
},
{
"descr": "this is eth1/3",
"dn": "sys/intf/phys-[eth1/3]",
"id": "eth1/3"
}
] Currently the plugin would parse this input as:
My simple fix is to first loop through the fields to find
|
Yeah but I don't see where the If the |
|
Yes that's what is missing. And you need to delete the tag to avoid it being carried over to the next node which might not define a |
Yes, exactly. Added comments. |
Download PR build artifacts for linux_amd64.tar.gz, darwin_arm64.tar.gz, and windows_amd64.zip. 📦 Click here to get additional PR build artifactsArtifact URLs |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your effort and patience @yusufshalaby!
Summary
Fixes the alignment of
dn
tags with their corresponding fields for telemetry paths on NXOS wherequery-target=subtree
.Checklist
Related issues
resolves #15922