Commit 86939e7
authored
server: Fixed private gateway can't be deleted (#4016)
When the static route service is not available on the VPC and a static route is created, the static route is created in a revoked state.
Currently, the UI doesn't distinguish between active or revoked static routes.
This PR adds the missing state filter to the list routes command and only lists active routes in the UI.
It also ignores revoked routes when the private gateway is being removed but clears out the inactive routes before the gateway is removed.
Fixes #29081 parent f843c53 commit 86939e7
6 files changed
Lines changed: 38 additions & 3 deletions
File tree
- api/src/main/java/org/apache/cloudstack/api/command/user/vpc
- engine/schema/src/main/java/com/cloud/network/vpc/dao
- server/src/main/java/com/cloud/network/vpc
- ui/scripts
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
109 | 109 | | |
110 | 110 | | |
111 | 111 | | |
112 | | - | |
| 112 | + | |
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
| |||
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
60 | 63 | | |
61 | 64 | | |
62 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
63 | 70 | | |
64 | 71 | | |
65 | 72 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
65 | 66 | | |
66 | 67 | | |
67 | 68 | | |
| |||
91 | 92 | | |
92 | 93 | | |
93 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
94 | 102 | | |
95 | 103 | | |
96 | 104 | | |
97 | 105 | | |
| 106 | + | |
98 | 107 | | |
99 | 108 | | |
100 | 109 | | |
| |||
Lines changed: 17 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2027 | 2027 | | |
2028 | 2028 | | |
2029 | 2029 | | |
2030 | | - | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
| 2033 | + | |
2031 | 2034 | | |
2032 | 2035 | | |
2033 | 2036 | | |
| |||
2037 | 2040 | | |
2038 | 2041 | | |
2039 | 2042 | | |
| 2043 | + | |
| 2044 | + | |
| 2045 | + | |
| 2046 | + | |
| 2047 | + | |
| 2048 | + | |
| 2049 | + | |
2040 | 2050 | | |
2041 | 2051 | | |
2042 | 2052 | | |
| |||
2329 | 2339 | | |
2330 | 2340 | | |
2331 | 2341 | | |
| 2342 | + | |
2332 | 2343 | | |
2333 | 2344 | | |
2334 | 2345 | | |
| |||
2344 | 2355 | | |
2345 | 2356 | | |
2346 | 2357 | | |
| 2358 | + | |
2347 | 2359 | | |
2348 | 2360 | | |
2349 | 2361 | | |
| |||
2371 | 2383 | | |
2372 | 2384 | | |
2373 | 2385 | | |
| 2386 | + | |
| 2387 | + | |
| 2388 | + | |
| 2389 | + | |
2374 | 2390 | | |
2375 | 2391 | | |
2376 | 2392 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2652 | 2652 | | |
2653 | 2653 | | |
2654 | 2654 | | |
2655 | | - | |
| 2655 | + | |
| 2656 | + | |
2656 | 2657 | | |
2657 | 2658 | | |
2658 | 2659 | | |
| |||
0 commit comments