new example

This commit is contained in:
2026-03-25 15:31:06 +03:00
parent 4c69be99e0
commit c6b97b7a13
2 changed files with 5 additions and 0 deletions
+4
View File
@@ -66,6 +66,10 @@ class Interface:
"Interface 'itype' must be one of 'physical', 'virtual', 'bridge', 'vlan', or None"
)
# print(
# f"Creating interface '{name}' with itype='{itype}', adapter='{adapter}', slave_interfaces='{slave_interfaces}', parent_interface='{parent_interface}', ip_address='{ip_address}', network='{network}', subnet_mask='{subnet_mask}', default_gateway='{default_gateway}'"
# )
if itype == "bridge" and not slave_interfaces:
raise ValueError("Bridge interfaces must have 'slave_interfaces' defined")
if itype == "vlan" and not parent_interface: