Actions
Bug #5766
closed![Author: Anonymous](/images/anonymous.png?1678052115)
gateways widget: Incorrect monitoring of v6 over v4 tunnels
Start date:
01/13/2016
Due date:
% Done:
100%
Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.3
Affected Architecture:
Actions
Added by Anonymous over 8 years ago. Updated over 8 years ago.
100%
in this example isn't monitoring HENETIPV6_TUNNELV6 good enough and just hide V4?
That's the idea. The interface has no v4 IP so it should have no v4 gateway, yet the system makes a v4 gateway entry (that shouldn't be there)
"just hide V4" is a work-around Michael.
We're better than that.
let's make it work right.
[details deleted]
(I love having my system at home detailed in public...)
Looks like this GIF (and also GRE) case could be fixed by some better testing in source:src/etc/inc/interfaces.inc#L5573 and source:src/etc/inc/interfaces.inc#L5605 (interface_has_gateway() and interface_has_gatewayv6()). In the case of gif/gre it should check the interface address to make sure the interface has an address of the desired type. That should be a safe test since it is statically configured in the gif settings, unlike the other types that can change.
Here is a quick fix that works to eliminate the bum entry on GIF/GRE: https://gist.github.com/jim-p/a1b92a97e4a9ee7e30fb
Applied in changeset 471e7c3ac7276568c0fea726d699fb63dd87d3eb.
Works fine here
Working as expected now. Closing.