Bug #304
closedDeleting a static gateway results in an auto-added dynamic gateway
100%
Description
When you have a static gateway configured, and delete that gateway, you end up with an auto-added dynamic gateway for that interface.
To replicate:
Configure OPT1 as static, with a static gateway.
Delete the gateway on system_gateways.php
Upon page refresh of system_gateways.php you have a dynamic gateway for OPT1, though Interfaces > OPT1 shows no gateway configured (which is correct).
Files
Updated by Ermal Luçi almost 15 years ago
- Status changed from New to Feedback
I cannot reproduce this.
Can you send me your config?
Updated by igor igor almost 15 years ago
I'm having the same error:
<gateways>
<gateway_item>
<interface>lan</interface>
<name>LAN</name>
<gateway>10.0.0.1</gateway>
<descr>Interface LAN static Gateway</descr>
<monitor>10.0.0.1</monitor>
</gateway_item>
<gateway_item>
<gateway>dynamic</gateway>
<descr>Interface WAN dynamic Gateway</descr>
<name>WAN</name>
<interface>wan</interface>
<defaultgw/>
</gateway_item>
</gateways>
When I try to edit the dynamic gateway I get this on save:
The following input errors were detected:
The field 'Gateway' is required.
Updated by Ermal Luçi almost 15 years ago
Try later snapshots.
I committed a fix.
Updated by Chris Buechler almost 15 years ago
- File config-redmine304.xml config-redmine304.xml added
- Status changed from Feedback to New
Still a bit of a problem here. For example, restore the attached config, browse to System > Gateways. Delete OPT1GW and you end up with a dynamic OPT1 gateway. After applying changes it goes away, but it shouldn't ever be shown.
Updated by Chris Buechler over 14 years ago
- Status changed from Feedback to New
This has regressed since my last update. At that point, it only showed the dynamic gateway until changes were applied. Now it has a dynamic gateway that doesn't go away.
Updated by Ermal Luçi over 14 years ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
Applied in changeset 9c6db17a5d3199bbb38956e1b213872eabca2091.