Skip to content

[Bug]: Filtering SMD interfaces does not apply query parameters #68

@aheil-lanl

Description

@aheil-lanl

Describe the bug

The SMD API spec says that when you GET /Inventory/EthernetInterfaces you can provide query params to filter by certain properties. The ochami tool exposes Component ID, IP address, MAC address, and Network, but these don't seem to get included in the GET request.

I confirmed this by looking at --log-level debug, I'll paste that in the logs box below.

Steps to reproduce

  1. Start with an SMD that's populated with more than one interface.
  2. ochami smd iface get --comp-id STRING for one of the interface's component ID
  3. All interfaces are returned, not just the one with the correct component ID.

Relevant log output

[root@example-ochami-vm ~]# ochami smd --log-level debug iface get --comp-id EXAMPLE
2026-02-24T12:10:35-07:00 DBG lib.go:177 > logging has been initialized
2026-02-24T12:10:35-07:00 DBG lib.go:309 > using base URI from default cluster venadito
2026-02-24T12:10:35-07:00 DBG client.go:245 > GET: https://example.openchami.cluster:8443/hsm/v2/Inventory/EthernetInterfaces
2026-02-24T12:10:35-07:00 DBG client.go:266 > Request headers:
2026-02-24T12:10:35-07:00 DBG client.go:268 >   User-Agent: [ochami/0.6.0]
2026-02-24T12:10:35-07:00 DBG client.go:277 > No body in request
2026-02-24T12:10:35-07:00 DBG client.go:288 > Response status: 200 OK
2026-02-24T12:10:35-07:00 DBG client.go:290 > Response headers:
2026-02-24T12:10:35-07:00 DBG client.go:292 >   Content-Type: [application/json]
2026-02-24T12:10:35-07:00 DBG client.go:292 >   Date: [Tue, 24 Feb 2026 19:10:35 GMT]
2026-02-24T12:10:35-07:00 DBG client.go:309 > No body in response
2026-02-24T12:10:35-07:00 INF http.go:124 > Response status: HTTP/2.0 200 OK

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions