Repository navigation
upcoming: [M3-10597] β Add VPC IPv6 support in Linode Create flow #12885
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
dwiley-akamai
merged 10 commits into
linode:vpc-ipv6-remaining
from
dwiley-akamai:M3-10597-vpc-ipv6-linode-create-flow
Sep 23, 2025
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fbda2de
VPC IPv6 functionality in Linode Create flow when Linode Interfaces sβ¦
DevDW f210562
VPC IPv6 functionality in Linode Create flow when legacy interfaces sβ¦
DevDW 125c3d4
Update copy in tests
DevDW 1f83b7a
Passing VPCPanel.test.tsx
DevDW 9d2b9f4
Update referenced copy in linode-config.spec.ts
DevDW 11eff13
Merge branch 'vpc-ipv6-remaining' into M3-10597-vpc-ipv6-linode-creatβ¦
DevDW d9bfe22
Added changeset: Add VPC IPv6 support in Linode Create flow
DevDW f1fea64
Added changeset: Reflect 'Allow public IPv4 access (1:1 NAT)' copy chβ¦
DevDW e6ae3b4
Remove changesets and update changelog directly
DevDW 8af1b35
Helper text for VPC IPv6 fields for parity with Assign Linodes drawer
DevDW File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
packages/manager/src/features/Linodes/LinodeCreate/Networking/VPCIPv6Ranges.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,90 @@ | ||
| import { | ||
| CloseIcon, | ||
| IconButton, | ||
| LinkButton, | ||
| Notice, | ||
| Stack, | ||
| TextField, | ||
| TooltipIcon, | ||
| } from '@linode/ui'; | ||
| import React from 'react'; | ||
| import { Controller, useFieldArray, useFormContext } from 'react-hook-form'; | ||
|
|
||
| import { VPCIPv6RangesDescription } from 'src/features/VPCs/components/VPCRangesDescription'; | ||
|
|
||
| import type { LinodeCreateFormValues } from '../utilities'; | ||
|
|
||
| interface Props { | ||
| disabled: boolean; | ||
| interfaceIndex: number; | ||
| } | ||
|
|
||
| export const VPCIPv6Ranges = ({ disabled, interfaceIndex }: Props) => { | ||
| const { | ||
| control, | ||
| formState: { errors }, | ||
| } = useFormContext<LinodeCreateFormValues>(); | ||
|
|
||
| const { append, fields, remove } = useFieldArray({ | ||
| control, | ||
| name: `linodeInterfaces.${interfaceIndex}.vpc.ipv6.ranges`, | ||
| }); | ||
|
|
||
| return ( | ||
| <Stack> | ||
| <Stack spacing={1}> | ||
| {errors?.linodeInterfaces?.[interfaceIndex]?.vpc?.ipv6?.ranges | ||
| ?.message && ( | ||
| <Notice variant="error"> | ||
| { | ||
| errors?.linodeInterfaces?.[interfaceIndex]?.vpc?.ipv6?.ranges | ||
| ?.message | ||
| } | ||
| </Notice> | ||
| )} | ||
| {fields.map((field, index) => ( | ||
| <Stack | ||
| alignItems="flex-start" | ||
| direction="row" | ||
| key={field.id} | ||
| spacing={0.5} | ||
| > | ||
| <Controller | ||
| control={control} | ||
| name={`linodeInterfaces.${interfaceIndex}.vpc.ipv6.ranges.${index}.range`} | ||
| render={({ field, fieldState }) => ( | ||
| <TextField | ||
| errorText={fieldState.error?.message} | ||
| hideLabel | ||
| inputRef={field.ref} | ||
| label={`IP Range ${index}`} | ||
| onBlur={field.onBlur} | ||
| onChange={field.onChange} | ||
| sx={{ minWidth: 290 }} | ||
| value={field.value} | ||
| /> | ||
| )} | ||
| /> | ||
| <IconButton | ||
| aria-label={`Remove IP Range ${index}`} | ||
| onClick={() => remove(index)} | ||
| sx={{ padding: 1 }} | ||
| > | ||
| <CloseIcon /> | ||
| </IconButton> | ||
| </Stack> | ||
| ))} | ||
| </Stack> | ||
| <Stack alignItems="center" direction="row" spacing={1}> | ||
| <LinkButton disabled={disabled} onClick={() => append({ range: '' })}> | ||
| Add IPv6 Range | ||
| </LinkButton> | ||
| <TooltipIcon | ||
| status="info" | ||
| sxTooltipIcon={{ p: 0.5 }} | ||
| text={<VPCIPv6RangesDescription />} | ||
| /> | ||
| </Stack> | ||
| </Stack> | ||
| ); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The helper text doesn't seem to be updating when switching selected subnets
Screen.Recording.2025-09-22.at.4.13.01.PM.mov
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch, I've made a note of it -- the UI for that field and helper text will be changing with a forthcoming PR in the next few days, so we can bundle a fix with that (if the helper text is retained in the updated design)