Commit 4d8d180
committed
controlplane/controller: fix flex-algo node-segment not removed on rollback
When flex-algo is disabled after being enabled, the controller was not
emitting 'no node-segment ipv4 index X flex-algo TOPOLOGY' cleanup lines
on Loopback255. Root cause: FlexAlgoNodeSegments was only populated when
flex-algo was enabled, so the template had nothing to iterate over during
rollback.
Fix: populate FlexAlgoNodeSegments whenever a features config is loaded
(not just when enabled), so the template can emit cleanup lines even
when flex-algo is being disabled.1 parent 9ed036d commit 4d8d180
3 files changed
Lines changed: 20 additions & 2 deletions
File tree
- controlplane/controller/internal/controller
- fixtures
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
82 | 88 | | |
83 | 89 | | |
84 | 90 | | |
| |||
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
910 | 920 | | |
911 | 921 | | |
912 | 922 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
429 | | - | |
430 | | - | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
431 | 433 | | |
432 | 434 | | |
433 | 435 | | |
| |||
0 commit comments