Skip to content

Commit

Permalink
fix(legacy): stop setting gateway on gateway-less subnets (canonical#…
Browse files Browse the repository at this point in the history
  • Loading branch information
vtapia committed Dec 14, 2020
1 parent 04b752b commit a7808e1
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions legacy/src/app/controllers/vlan_details.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,13 +338,8 @@ export function VLANDetailsController(
dhcp.endPlaceholder = "(no available IPs)";
}
if (angular.isString(suggested_gateway)) {
if (forRelay) {
dhcp.gatewayIP = "";
dhcp.gatewayPlaceholder = suggested_gateway + " (optional)";
} else {
dhcp.gatewayIP = suggested_gateway;
dhcp.gatewayPlaceholder = suggested_gateway;
}
dhcp.gatewayIP = "";
dhcp.gatewayPlaceholder = suggested_gateway + " (optional)";
} else {
// This means the subnet already has a gateway, so don't
// bother populating it.
Expand Down

0 comments on commit a7808e1

Please sign in to comment.