MCPcopy Create free account
hub / github.com/archlinux/archinstall / parse_arg

Method parse_arg

archinstall/lib/models/network.py:67–74  ·  view source on GitHub ↗
(cls, arg: _NicSerialization)

Source from the content-addressed store, hash-verified

65
66 @classmethod
67 def parse_arg(cls, arg: _NicSerialization) -> Self:
68 return cls(
69 iface=arg.get('iface', None),
70 ip=arg.get('ip', None),
71 dhcp=arg.get('dhcp', True),
72 gateway=arg.get('gateway', None),
73 dns=arg.get('dns', []),
74 )
75
76 def as_systemd_config(self) -> str:
77 match: list[tuple[str, str]] = []

Callers 2

from_configMethod · 0.45
parse_argMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected