(cls, arg: _NicSerialization)
| 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]] = [] |
no outgoing calls
no test coverage detected