When looking at network maps, even when multiple links between devices are discovered through xDP, the map seems to only show a single connection. Would there be a way to show the various links between two devices instead of only one?
It would be even better if LibreNMS could show the EtherChannel or Port-Channel this rolls up into. It does not seem to be link-aggregation aware right now.
I wanted to confirm I’m not missing a config option first, and can convert this to a feature request after.
Hi! Im having the same problem to view multiple links by xDP (port-channel, LAG,etc) i only see one link between devices. I have disable de ARP discovery.
Also cant see on network map LLDP neigbhobrs links if only one device is on the databese(need to discovery both) . I tried to use the old map and it works correctly “$config[‘gui’][‘network-map’][‘style’] = ‘old’;”
Could be something wrong with this lines at /opt/librenms/html/includes/print-map.inc.php? I tried to play with "$config[‘network_map_vis_options’] = " but nothing happens.
" // Ensure only one link exists between any two ports, or any two devices. it prints only one link
if (!array_key_exists($link_id1, $link_assoc_seen) &&
!array_key_exists($link_id2, $link_assoc_seen) &&
!array_key_exists($device_id1, $device_assoc_seen) &&
!array_key_exists($device_id2, $device_assoc_seen)) {
$local_port = cleanPort($local_port);
$remote_port = cleanPort($remote_port);
// $local_port = cleanPort($items[‘local_port_id’]);
//$remote_port = cleanPort($items[‘remote_port_id’]);
$links[] = array_merge(
array(
‘from’=>$items[‘local_device_id’],
"
This is my validate:
root@XXXX:/opt/librenms# ./validate.php
I have another question, i´m still not seeing links to devices discovered by LLDP at one way only. Do you have an idea of what can be the wrong. Example:
@Markov
You can keep your modification but before upgrading, do “git reset --hard” in your librenms directory to revert your changes. Or else following message would prevent system from upgrading :
You are not currently on a branch. Please specify which
branch you want to merge with. See git-pull(1) for details.
git pull <remote> <branch>
Its seems that the remote device ending by “-05” has no hypertext link. It means librenms did not associate this name to any device in librenms. Make sure sysname configured in device match exactly the hostname in librenms.
Hi @louis@Kevin_Krumm! Sorry for the delay in answering
I have updated with ./daily.sh to “HEAD is now at 4c075a348… Bump version to 1.56” and are some change that has broken the map. Now its forming using all the interfaces between devices(subinterfaces and physical),and not only the learrned by XDP. Example:
So i rollback to te master Stable branch, edited the print-map.inc.php(with louis modifications), and the graphs start working fine again. So there are some other modification on daily updates that are affecting the map.
@Kevin_Krumm i think you misundertood me, the changes of @louis are working fine( i have applied his modifications before i rollback to Stable branch, and the map it´s working with no issue, and showing port-channels)! There is another change made with the update that has broken the map.