Bug #304
closed
Deleting a static gateway results in an auto-added dynamic gateway
Added by Chris Buechler almost 15 years ago.
Updated over 14 years ago.
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
- Status changed from New to Feedback
I cannot reproduce this.
Can you send me your config?
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.
Try later snapshots.
I committed a fix.
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.
- Status changed from New to Feedback
- 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.
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Status changed from Resolved to Feedback
- Status changed from Feedback to Resolved
Also available in: Atom
PDF