TWSD-1497-Clarifiation on eroute validity parameter
Review Request #1372 — Created Feb. 10, 2026 and updated — Latest diff uploaded
| Information | |
|---|---|
| austin | |
| APV10 | |
| rel_apv_10_7 | |
| TWSD-1497 | |
| Reviewers | |
| lucille, mingji, shuinvy | |
Fix two 500 errors in Eroute model
Jira : https://arraynetworks.atlassian.net/jira/software/projects/TWSD/boards/62?jql=assignee%20%3D%20712020%3A64a4a8f2-81d8-4b7a-9664-f9019a720f96&selectedIssue=TWSD-1497
Bug 1: IndexError in _insert and _update_param when Source/Destination IP is empty.Fix: Changed _insert and _update_param to use instance.select_src and instance.select_host values which field to read, instead of relying on the truthiness of the IP value. Also added a fallback to '0.0.0.0' (IPv4) or '::' (IPv6) when the IP string is empty.
Bug 2: validation field can't update by user cause 500 error.
Fix: Change the validation field to a read-only mode.
