2017-09-18 12:50 PM
Not directly, and I haven't tested this, but 'net-device-discovery-get-iter' will walk you through the chain of devices the Cluster knows about. The attributes you would care about are; 'capabilities' should be "switch", and 'device-ip' would be the answer you're looking for.
It's probably safe to presume that there are likely multiple switches out there, so you could check the 'port' and compare it against what you (hopefully) know the interface you need (i.e. "e0m").
I hope this helps!