Ipv4Config¶
- class pyniryo_nate.models.network.Ipv4Config(ip: str, netmask: str, dhcp: bool, gateway: str | None = None, dns: list[str] | None = None)[source]¶
Bases:
object- Parameters:
ip (str) – Static IP address to assign to the device.
netmask (str) – Subnet mask for the network.
gateway (str | None) – Default gateway IP address.
dns (list[str] | None) – List of DNS server IP addresses.
dhcp (bool) – Whether DHCP is enabled. If True,
ip,netmask,gatewayanddnsmay be ignored.
Attributes
Methods
- ip: str¶
- netmask: str¶
- dhcp: bool¶
- gateway: str | None = None¶
- dns: list[str] | None = None¶
- classmethod from_transport_model(model: Ipv4Config) Ipv4Config[source]¶
- Parameters:
model (Ipv4Config)
- Return type: