aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlibarcfire.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/libarcfire.py b/libarcfire.py
index 0402b30..e9b7adc 100755
--- a/libarcfire.py
+++ b/libarcfire.py
@@ -10,16 +10,19 @@
class DIF:
def __init__(self, name, members):
self.name = name
- self.members = set() if members == None else set(members)
+ self.members = dict()
+ if members != None:
+ for m in members:
+ self.members[m] = m
def __repr__(self):
return "%s: %s" % (self.name, str(sorted(self.members)))
def node_add(node_name):
- self.members.add(node_name)
+ self.members[node_name] = node_name
def node_del(node_name):
- self.members.discard(node_name)
+ del self.members[node_name]
# Shim over Ethernet