Skip to content

Custom VM orders: choose IPv4/IPv6 count - #93

Merged
v0l merged 2 commits into
mainfrom
feat/custom-vm-ip-count
Jul 30, 2026
Merged

Custom VM orders: choose IPv4/IPv6 count#93
v0l merged 2 commits into
mainfrom
feat/custom-vm-ip-count

Conversation

@v0l

@v0l v0l commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Closes #92.

Depends on api#105 (LNVPS/api#339, not merged yet) — do not merge before that lands, the endpoints don't accept/return these fields until it does.

  • src/api.ts:250-253,271-272,299-300min_ip4/max_ip4/min_ip6/max_ip6 on VmCustomTemplateParams, ip4_count/ip6_count on VmCustomTemplateRequest and VmTemplate.
  • src/components/vps-custom.tsx — IPv4/IPv6 sliders next to CPU/memory/storage, same min/max pattern; hidden when a template has no range to offer. Wired into the live price quote and the order spec.
  • src/pages/order/vm.tsx:59-60 — the chosen counts actually reach orderCustom, not just the quote.
  • src/components/vps-resources.tsx — order-review line and VM cards show the count when it's not the boring default (>1 IPv4, any IPv6).
  • Locale copy extracted and translated to all 10 languages.

Built against the contract Bojan posted in general — can't verify end to end until api#105 merges.

Known at merge time: api#105 caps max_ip4/max_ip6 at 1 (Proxmox's single-NIC ipconfig0 can't carry a second address yet, api#343 lifts it), so both sliders stay hidden until that cap is lifted. Confirmed correct behaviour, not a bug — flagged by Goran in general.

v0l added 2 commits July 30, 2026 14:32
Signed-off-by: v0l <kieran@harkin.me>
Signed-off-by: v0l <kieran@harkin.me>
@v0l
v0l merged commit da74fff into main Jul 30, 2026
3 checks passed
@v0l
v0l deleted the feat/custom-vm-ip-count branch July 30, 2026 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Custom VM order form: let customers choose IPv4/IPv6 count

1 participant