Commit da6122e
committed
Monitoring Interfaces: sweep the stale main-table route when alias mode deploys
A row deployed plain and later switched to alias via "Save without deploying"
+ the row-level Deploy button (which, unlike Save & Deploy, never tears down
the old config) kept its old main-table host route. In alias mode that route
still captures the shared TARGET_IP in the main table ahead of the other
WAN's device - the exact hijack alias mode exists to prevent.
The boot script's alias branch now deletes this interface's main-table host
route (dev-scoped, so another row legitimately routing the same TARGET_IP
via its own interface is untouched), and the idempotency guard requires its
absence - so the cron watchdog also self-heals state left behind by earlier
builds. Verified end-to-end in a NET_ADMIN container: plain deploy, alias
deploy over it, idempotent re-run.1 parent ab0b0ae commit da6122e
2 files changed
Lines changed: 29 additions & 3 deletions
File tree
- src/NetworkOptimizer.Web/Services
- tests/NetworkOptimizer.Web.Tests
Lines changed: 13 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
779 | 779 | | |
780 | 780 | | |
781 | 781 | | |
782 | | - | |
783 | | - | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
784 | 785 | | |
785 | 786 | | |
786 | 787 | | |
787 | 788 | | |
788 | 789 | | |
789 | 790 | | |
790 | 791 | | |
| 792 | + | |
791 | 793 | | |
792 | 794 | | |
793 | 795 | | |
794 | | - | |
| 796 | + | |
795 | 797 | | |
796 | 798 | | |
797 | 799 | | |
798 | 800 | | |
799 | 801 | | |
800 | 802 | | |
| 803 | + | |
| 804 | + | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
| 808 | + | |
| 809 | + | |
| 810 | + | |
801 | 811 | | |
802 | 812 | | |
803 | 813 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
153 | 169 | | |
154 | 170 | | |
155 | 171 | | |
| |||
0 commit comments