Commit 2f4a643
committed
Fix VLAN Leak
The logic was backwards so what was likely to happen was the network
would be deleted, we'd update the allocation, which would then fail due
to a conflict error. We'd never reconcile again because the network had
gone and thus we had no way of getting the segmentation ID. This makes
deallocation idempotent so it can be called multiple times, and does it
before the network is deleted so we always have access to the
segmentation ID.1 parent c271292 commit 2f4a643
File tree
3 files changed
+21
-16
lines changed- pkg/providers
- allocation/vlan
- internal/openstack
3 files changed
+21
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
206 | 212 | | |
207 | 213 | | |
208 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
177 | 177 | | |
178 | 178 | | |
179 | 179 | | |
180 | | - | |
| 180 | + | |
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
| 193 | + | |
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1774 | 1774 | | |
1775 | 1775 | | |
1776 | 1776 | | |
1777 | | - | |
1778 | | - | |
1779 | | - | |
1780 | | - | |
| 1777 | + | |
| 1778 | + | |
| 1779 | + | |
1781 | 1780 | | |
1782 | 1781 | | |
1783 | 1782 | | |
1784 | 1783 | | |
1785 | 1784 | | |
1786 | | - | |
1787 | | - | |
1788 | | - | |
| 1785 | + | |
1789 | 1786 | | |
1790 | 1787 | | |
1791 | 1788 | | |
1792 | | - | |
1793 | | - | |
1794 | | - | |
| 1789 | + | |
1795 | 1790 | | |
1796 | 1791 | | |
| 1792 | + | |
| 1793 | + | |
| 1794 | + | |
| 1795 | + | |
1797 | 1796 | | |
1798 | 1797 | | |
1799 | 1798 | | |
| |||
0 commit comments