diff --git a/src/middlewared/middlewared/api/v25_04_0/docker.py b/src/middlewared/middlewared/api/v25_04_0/docker.py index 64b311a49983..76774851fc7e 100644 --- a/src/middlewared/middlewared/api/v25_04_0/docker.py +++ b/src/middlewared/middlewared/api/v25_04_0/docker.py @@ -33,6 +33,14 @@ class DockerEntry(BaseModel): dataset: NonEmptyString | None pool: NonEmptyString | None nvidia: bool + address_pools: list[dict] + cidr_v6: str + + +@single_argument_args('docker_update') +class DockerUpdateArgs(DockerEntry, metaclass=ForUpdateMetaclass): + id: Excluded = excluded_field() + dataset: Excluded = excluded_field() address_pools: list[AddressPool] cidr_v6: IPvAnyInterface @@ -46,12 +54,6 @@ def validate_ipv6(cls, v): return v -@single_argument_args('docker_update') -class DockerUpdateArgs(DockerEntry, metaclass=ForUpdateMetaclass): - id: Excluded = excluded_field() - dataset: Excluded = excluded_field() - - class DockerUpdateResult(BaseModel): result: DockerEntry