Skip to main content

vantage_sdk.cluster.network.schema

Canonical Network catalog models (shared by vdeployer-web, the SDK, and the CLI).

Classes

Ipam(*, ipam_type: vantage_sdk.cluster.network.schema.IpamType = <IpamType.NV_IPAM: 'nv-ipam'>, ip_range: str = '', gateway: str = '', exclude: list[str] = <factory>, routes: list[dict] = <factory>, per_node_block_size: int = 0) -> None

IPAM configuration for a network.

IpamType(*values)

IPAM plugin type for a network.

Network(*, name: str, network_type: vantage_sdk.cluster.network.schema.NetworkType = <NetworkType.MACVLAN: 'macvlan'>, iface_name: str = '', bridge: str = '', vlan: int | None = None, mtu: int = 0, ipam: vantage_sdk.cluster.network.schema.Ipam = <factory>) -> None

A Multus pod network. Canonical model shared across repos.

NetworkType(*values)

CNI plugin type for a Multus network.

NetworkUpdate(*, network_type: vantage_sdk.cluster.network.schema.NetworkType | None = None, iface_name: str | None = None, bridge: str | None = None, vlan: int | None = None, mtu: int | None = None, ipam: vantage_sdk.cluster.network.schema.Ipam | None = None) -> None

Partial update (PATCH) for a network -- all fields optional.

Functions

cni_mode(network_type: 'NetworkType') -> 'str'

Inferred CNI mode (macvlan->bridge, ipvlan->l2, else "").