OSDN Git Service

fix VethAgent vim tabstop
[ti2/ti2.git] / linkpair / device.py
index 4bd9126..4f1ecd5 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+# vim: tabstop=4 shiftwidth=4 softtabstop=4
 # -*- coding: utf-8 -*-
 #
 
@@ -16,6 +16,7 @@ class Device(LinkObject):
     NAMESPACE_TYPE = 6
     NOT_CONNECTED_TYPE = 7
 
-    def __init__(self, label, type=DEFAULT_TYPE):
+    def __init__(self, label, type=DEFAULT_TYPE, metadata={}):
         self.label = label
         self.type = type
+        self.metadata = metadata