Project

General

Profile

Actions

Bug #8846

closed

Misleading error message when adding/editing static routes which use a gateway on a disabled interface

Added by Mario Harjac about 6 years ago. Updated about 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Gateways
Target version:
Start date:
08/28/2018
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
23.09
Release Notes:
Default
Affected Version:
2.7.0
Affected Architecture:
All

Description

I was adding static route on disabled interface and got the following message:
The following input errors were detected:
The gateway "10.66.0.99" is a different Address Family than network "10.66.10.0".

As you can see from the message itself, network and gateway are in the same family. I've tracked that down to the skipping of disabled interfaces in return_gateways_array function.
Possible solutions:
  • change error message to something like: "The gateway "10.66.0.99" is a different Address Family than network "10.66.10.0" or interface disabled"
  • remove skipping of disabled interfaces
  • automatically disable gateways on disabled interfaces
Actions

Also available in: Atom PDF