datapath: Improve <linux/openvswitch.h> comments.
[sliver-openvswitch.git] / python / ovs / ovsuuid.py
index 8da36c6..31c9bcc 100644 (file)
@@ -21,6 +21,7 @@ import ovs.db.parser
 uuidRE = re.compile("^xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx$"
                     .replace('x', '[0-9a-fA-F]'))
 
+
 def zero():
     return uuid.UUID(int=0)
 
@@ -51,7 +52,7 @@ def from_json(json, symtab=None):
             raise e
 
         if name not in symtab:
-            symtab[name] = uuid4()
+            symtab[name] = uuid.uuid4()
         return symtab[name]