remove_backup_route: route repoint is one-way and gated on $changed #6
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
eric/10-wancarp#6
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: Medium (only when
$remove_backup_route = true) · Location:10-wancarp:444-452, MASTER branch375-405$lan_vip. It relies oninterface_configure→ newwanip to rewrite the default route. That probably works with DHCP, but I couldn't confirm it for a static WAN. If it doesn't happen, the new MASTER sends its default traffic to the peer, which is now the BACKUP with its WAN down.$changedis true. If WAN was already down (for example it failed to come up at boot), the BACKUP keeps a stale or missing default route.route delete defaultfails, its error is logged androute addruns anyway.Suggested fix:
$remove_backup_routeis set.$changed.run_cmd()results.