Skip to content

Commit 4b8e60a

Browse files
authored
Bump API version for jumbo frames and block size type (#3241)
No UI work, just supporting the API changes and plumbing the jumbo frames enable flag through updates. Will need to update this to a main commit once oxidecomputer/omicron#10472 goes in.
1 parent 2731481 commit 4b8e60a

13 files changed

Lines changed: 136 additions & 14 deletions

File tree

OMICRON_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
985304a607b16191bdc35e0ea87fa522d925b514
1+
c007af2f407ddbee44a9c37a690e3208a0f848cc

app/api/__generated__/Api.ts

Lines changed: 52 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/api/__generated__/OMICRON_VERSION

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/api/__generated__/msw-handlers.ts

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/api/__generated__/validate.ts

Lines changed: 40 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/pages/project/instances/AutoRestartCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ export function AutoRestartCard() {
8989
memory: instance.memory,
9090
cpuPlatform: instance.cpuPlatform || null,
9191
bootDisk: instance.bootDiskId || null,
92+
enableJumboFrames: instance.enableJumboFrames,
9293
},
9394
})
9495
})

app/pages/project/instances/InstancePage.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ export function ResizeInstanceModal({
325325
bootDisk: instance.bootDiskId || null,
326326
cpuPlatform: instance.cpuPlatform || null,
327327
autoRestartPolicy: instance.autoRestartPolicy || null,
328+
enableJumboFrames: instance.enableJumboFrames,
328329
},
329330
})
330331
})

app/pages/project/instances/StorageTab.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ export default function StorageTab() {
187187
memory: instance.memory,
188188
autoRestartPolicy: instance.autoRestartPolicy || null,
189189
cpuPlatform: instance.cpuPlatform || null,
190+
enableJumboFrames: instance.enableJumboFrames,
190191
},
191192
}),
192193
errorTitle: 'Could not unset boot disk',
@@ -224,6 +225,7 @@ export default function StorageTab() {
224225
instance.ncpus,
225226
instance.memory,
226227
instance.cpuPlatform,
228+
instance.enableJumboFrames,
227229
getSnapshotAction,
228230
]
229231
)
@@ -252,6 +254,7 @@ export default function StorageTab() {
252254
memory: instance.memory,
253255
autoRestartPolicy: instance.autoRestartPolicy || null,
254256
cpuPlatform: instance.cpuPlatform || null,
257+
enableJumboFrames: instance.enableJumboFrames,
255258
},
256259
}),
257260
errorTitle: `Could not ${verb} boot disk`,
@@ -304,6 +307,7 @@ export default function StorageTab() {
304307
instance.ncpus,
305308
instance.memory,
306309
instance.cpuPlatform,
310+
instance.enableJumboFrames,
307311
getSnapshotAction,
308312
bootDisks,
309313
]

mock-api/disk.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ export const disks: Json<Disk>[] = [
288288
device_path: '/jkl',
289289
size: 12 * GiB,
290290
block_size: 2048,
291-
disk_type: 'distributed' as const,
291+
disk_type: 'distributed',
292292
read_only: false,
293-
}
293+
} satisfies Json<Disk>
294294
}),
295295
]

mock-api/image.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import { project } from './project'
1515
const base = {
1616
time_created: new Date().toISOString(),
1717
time_modified: new Date().toISOString(),
18-
block_size: 512,
18+
block_size: 512 as const,
1919
}
2020

2121
export const images: Json<Image>[] = [

0 commit comments

Comments
 (0)