Subscribe

API to pull cluster switch ip's

Hi All,

 

Is there any API to directly pull cluster switch ip's (similar to "system cluster-switch show")? I can pull it from device discovery, looking for alternative api.

 

Re: API to pull cluster switch ip's

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!