Development

This commit is contained in:
Matthew Grotke 2026-05-27 03:34:57 -04:00
parent 9e290d958a
commit e559018615
2 changed files with 4 additions and 0 deletions

View file

@ -200,6 +200,9 @@ def networklayout_tablevlans_edit():
new_identities.append(entry)
gateway_raw = sanitize.ip(request.form.get('gateway', ''))
if gateway_raw and gateway_raw not in identity_ips:
flash(f"Gateway '{gateway_raw}' must match one of the server identity IPs.", 'error')
return redirect(VIEW)
inferred_gw = (min(identity_ips, key=lambda ip: int(ip.split('.')[-1]))
if identity_ips else '')
new_stored_gw = gateway_raw if (gateway_raw and gateway_raw != inferred_gw) else ''

View file

@ -1581,6 +1581,7 @@
"col": "server_identity_ips",
"input_type": "textarea_pair",
"col_label": "IP Address",
"col_validate": "ip",
"pair_col": "server_identity_descriptions",
"pair_label": "Description (Opt)",
"pair_col2": "server_identity_hostnames",