mirror of
https://github.com/librenms/librenms.git
synced 2024-09-22 10:58:42 +00:00
parent
af300f7984
commit
d46f300260
@ -78,10 +78,10 @@ foreach ($vrfs_lite_cisco as $vrf_lite) {
|
||||
foreach ($ospf_ports_poll as $ospf_port_id => $ospf_port) {
|
||||
// find port_id
|
||||
if ($ospf_port['ospfAddressLessIf']) {
|
||||
$ospf_port['port_id'] = $device_model->ports()->where('ifIndex', $ospf_port['ospfAddressLessIf'])->value('port_id');
|
||||
$ospf_port['port_id'] = (int)$device_model->ports()->where('ifIndex', $ospf_port['ospfAddressLessIf'])->value('port_id');
|
||||
} else {
|
||||
// FIXME force same device ?
|
||||
$ospf_port['port_id'] = Ipv4Address::query()
|
||||
$ospf_port['port_id'] = (int)Ipv4Address::query()
|
||||
->where('ipv4_address', $ospf_port['ospfIfIpAddress'])
|
||||
->where('context_name', $device['context_name'])
|
||||
->value('port_id');
|
||||
|
Loading…
Reference in New Issue
Block a user