add some basics

This commit is contained in:
2025-11-19 19:50:01 +03:00
parent 5bca62ec04
commit 2436c0fe2b
8 changed files with 227 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
class Wire:
def __init__(self, from_device, to_device):
self.from_device = from_device
self.to_device = to_device
class Device:
def __init__(self, name, model, properties):
self.name = name
self.model = model
self.properties = properties
class Switch(Device):
pass
class Router(Device):
pass
class Host(Device):
pass