Use ovs_be32 in nx_flow_mod_table_id
[openvswitch] / python / ovs / ovsuuid.py
index 8da36c6c355730b6bd1cddc73a41ca094472140d..31c9bccd571abab8bc01748b30e2400e2856e72c 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]