-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gateway reappears after reconfiguring dhcp #1860
Comments
I believe the issue comes from line 345 in legacy/src/app/controllers/vlan_details.js: 340 if (angular.isString(suggested_gateway)) { Is there a reason why the gateway has to be generated/populated based on subnet.statistics? |
Hi @vtapia! Thanks for looking into this. I've got no idea why the gateway is being set based on I think your fix in vtapia@a7808e1 is sound. If you create a pull request on this repo I'll be happy to approve it. |
Done, thanks @Caleb-Ellis ! |
) * fix(legacy): stop setting gateway on gateway-less subnets (#1860) Co-authored-by: Caleb Ellis <[email protected]>
) * fix(legacy): stop setting gateway on gateway-less subnets (#1860) Co-authored-by: Caleb Ellis <[email protected]>
) * fix(legacy): stop setting gateway on gateway-less subnets (#1860) Co-authored-by: Caleb Ellis <[email protected]>
) * fix(legacy): stop setting gateway on gateway-less subnets (#1860) Co-authored-by: Caleb Ellis <[email protected]>
Bug originally filed by arif-ali at https://bugs.launchpad.net/bugs/1903586
MAAS version: 2.8.2
Package: snap and deb
If we have MAAS running with any subnet where we are providing dhcp, MAAS will automatically add a gateway IP address if the subnet is reconfigured and the Reconfigure DHCP button is pressed.
Steps to re-produce:
If we set the Start IP address to 10.0.6.1, then the Gateway IP is also set, but now to 10.0.6.254 instead of 10.0.6.1, as that is now being used.
We are also able to see the same updates in /var/lib/maas/dhcpd.conf where the parameter "option routers 10.0.6.1;" will exist.
We should not expect the gateway to be set, if the gateway is blank in the UI.
The text was updated successfully, but these errors were encountered: