How to get link status using python client

Hi all,

I’m writing a tool to rebuild our testbeds. I need to scan all of the 10 gbps connections on the machine and figure out which ones have link.

I’m iterating over machine.interfaces.links but I don’t see a link speed or status. Where is it hiding?

Is there a way to figure this out? I’m reading the source but it seems to build the objects dynamically.

FYI…I do understand that the values I’ll see will be from when the commissioning ran, not real time.

i don’t use the python API, but in the CLI, there is JSON array within each machine’s dataset called “interface_set” which has members “link_speed” and “interface_speed,” if that helps at all.