Skip to content

[BUG] ip static-nat enable doesn't enable static nat #44

Description

@cokerrd

Description

Help text example is incorrect as a network field is required to enable a static nat, but there is also no available network flag, so I'm unable to enable a static nat

Steps to reproduce

zcp ip static-nat enable 1036521143 --instance my-vm

Expected behavior

Enables Static nat on ip

Actual behavior

Doesn't work and logs that a network field is required but there is no network flag

Error: ip static-nat enable: enabling static NAT for IP 232294987: API error 500 (code=Error): The network field is required.

Environment

  • zcp version (zcp version): 0.0.26
  • OS / Architecture: MacOS/arm
  • Shell: zsh

Debug output

Debug output
[DEBUG] POST https://api.zcp.zsoftly.ca/api/ipaddresses/232294987/static-nat
[DEBUG] POST https://api.zcp.zsoftly.ca/api/ipaddresses/232294987/static-nat -> 500
[DEBUG] response: {"status":"Error","message":"The network field is required.","timezone":"2026-07-22T22:00:16.374229Z","data":null}
Error: ip static-nat enable: enabling static NAT for IP 232294987: API error 500 (code=Error): The network field is required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions