Using \App\Module\Port::find to retrieve port using ifIndex & device_id

Reading over the documentation for Alert Templates, it seems that I can use functions to retrieve additional data, beyond what’s available in $faults[] array. For BGP Peers (bgpPeers) object, there are two fields - device_id, and bgpPeerIface, which map to an entry in ports, matching device_id & ifIndex.

How do I use built-in modules to retrieve additional information about that Port using \App\Models\Port::find method?

Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.