ffmap-backend/node.py

20 lines
307 B
Python
Raw Normal View History

2012-05-11 14:12:41 +02:00
class Node():
def __init__(self):
self.name = ""
self.macs = set()
self.group = 0
self.online = False
# groups:
# 0 normal node
# 1 aftermath
# 2 gateways
# 3 TT
def add_mac(self, mac):
self.macs.add(mac)
def __repr__(self):
return self.macs.__repr__()