stmcginnis / gofish

Gofish is a Golang client library for DMTF Redfish and SNIA Swordfish interaction.
BSD 3-Clause "New" or "Revised" License
213 stars 112 forks source link

Ports/NetworkPorts are not LinksCollection #328

Closed smiller248 closed 5 months ago

stmcginnis commented 5 months ago

Can you give a little more context on this?

Ports are accessed via a few different objects. Looking at the EthernetInterface definition, the ports there are defined as an array of links, versus a collection that you query to get the array of links as Members of the collection.

There may be other paths to get them, so it's possible it's defined differently elsewhere. If you could point me to where you are trying to get them, or a sample snippet of code, I can take a closer look.

smiller248 commented 5 months ago

Closing this issue, please see https://github.com/stmcginnis/gofish/pull/329.

smiller248 commented 5 months ago

Also sorry if you spent any time digging into this. I accidentally hit submit on the issue before I was done writing it. I was planning to come back and update it with more information, but it ended up being easier to just create a PR to express my ideas.