Commit 9ebddfb
refactor(controller): move DHCP options cleanup to LS/LSP deletion lifecycle
Instead of iterating all DHCP options in gcLogicalSwitch, clean them up
at the point of resource deletion:
- Subnet-level: already handled by handleDeleteLogicalSwitch via DeleteDHCPOptions
- Per-port: now cleaned up in markAndCleanLSP when GC deletes orphaned LSPs
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>1 parent 8d6288c commit 9ebddfb
1 file changed
+4
-33
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | | - | |
202 | | - | |
203 | 170 | | |
204 | 171 | | |
205 | 172 | | |
| |||
540 | 507 | | |
541 | 508 | | |
542 | 509 | | |
| 510 | + | |
| 511 | + | |
| 512 | + | |
| 513 | + | |
543 | 514 | | |
544 | 515 | | |
545 | 516 | | |
| |||
0 commit comments