Commit 1e6ad2e
committed
xapi-consts: use a variant to reify valid values of cluster stack
Until now, the valid string values were not written anywhere, change the
situation.
Ideally this would be done using an enum in the idl, but unfortunately
this changes types of existing parameters in API calls, so it's quite
risky. Instead have a conservative approach to only enumerate the valid
values and make Constants the only source of truth for these values,
including default ones, which were scatterred around previously.
Signed-off-by: Pau Ruiz Safont <pau.safont@vates.tech>1 parent b48e85e commit 1e6ad2e
2 files changed
+22
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
| 216 | + | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
218 | 219 | | |
219 | | - | |
220 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
221 | 238 | | |
222 | 239 | | |
223 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
858 | 858 | | |
859 | 859 | | |
860 | 860 | | |
861 | | - | |
| 861 | + | |
862 | 862 | | |
863 | 863 | | |
864 | 864 | | |
| |||
0 commit comments