feat: juniper classification #3093
No reviewers
Labels
No labels
1week
2weeks
Failed compliance check
IP cameras
NATS
Possible security concern
Review effort 1/5
Review effort 2/5
Review effort 3/5
Review effort 4/5
Review effort 5/5
UI
aardvark
accessibility
amd64
api
arm64
auth
back-end
bgp
blog
bug
build
checkers
ci-cd
cleanup
cnpg
codex
core
dependencies
device-management
documentation
duplicate
dusk
ebpf
enhancement
eta 1d
eta 1hr
eta 3d
eta 3hr
feature
fieldsurvey
github_actions
go
good first issue
help wanted
invalid
javascript
k8s
log-collector
mapper
mtr
needs-triage
netflow
network-sweep
observability
oracle
otel
plug-in
proton
python
question
reddit
redhat
research
rperf
rperf-checker
rust
sdk
security
serviceradar-agent
serviceradar-agent-gateway
serviceradar-web
serviceradar-web-ng
siem
snmp
sysmon
topology
ubiquiti
wasm
wontfix
zen-engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
carverauto/serviceradar!3093
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "refs/pull/3093/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub pull request.
Original GitHub pull request: #3095
Original author: @mfreeman451
Original URL: https://github.com/carverauto/serviceradar/pull/3095
Original created: 2026-03-27T22:03:47Z
Original updated: 2026-03-27T22:08:25Z
Original head: carverauto/serviceradar:3067-bug-snmp-discoverydevice-mapper-incorrectly-identifying-devices
Original base: staging
Original merged: 2026-03-27T22:04:15Z by @mfreeman451
IMPORTANT: Please sign the Developer Certificate of Origin
Thank you for your contribution to ServiceRadar. Please note, when contributing, the developer must include
a DCO sign-off statement indicating the DCO acceptance in one commit message. Here
is an example DCO Signed-off-by line in a commit message:
Describe your changes
Issue ticket number and link
Code checklist before requesting a review
Imported GitHub PR review comment.
Original author: @Copilot
Original URL: https://github.com/carverauto/serviceradar/pull/3095#discussion_r3003467564
Original created: 2026-03-27T22:08:24Z
Original path: elixir/serviceradar_core/priv/device_enrichment/rules/juniper.yaml
Original line: 16
Rule id and reason imply this is a vJunos-specific router rule, but the match conditions also include generic "juniper"/"junos" tokens and will match non-vJunos Junos devices (as exercised by the new tests). Since
classification_rule_idis persisted to device metadata, consider either (a) renaming the rule id/reason to reflect broader Junos router classification, or (b) tightening the match tokens to vJunos-specific values and adding a separate rule for generic Juniper/Junos routers.Imported GitHub PR review comment.
Original author: @Copilot
Original URL: https://github.com/carverauto/serviceradar/pull/3095#discussion_r3003467578
Original created: 2026-03-27T22:08:25Z
Original path: elixir/serviceradar_core/lib/serviceradar/inventory/sync_ingestor.ex
Original line: 665
The jsonb upsert fragment hard-codes the list of classification metadata keys to strip, duplicating
@classification_metadata_keysdefined at the top of the module. To avoid the two lists drifting (and leaving stale classification keys behind), consider deriving the fragment from@classification_metadata_keys(e.g., building the subtraction expression at compile-time or using thejsonb - text[]operator with an array of keys).