-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
bugSomething isn't workingSomething isn't working
Description
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
- Start with an SMD that's populated with more than one interface.
ochami smd iface get --comp-id STRINGfor one of the interface's component ID- 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 OKCode of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working