X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=python%2Fovs%2Fovsuuid.py;h=31c9bccd571abab8bc01748b30e2400e2856e72c;hb=dd1ba5b3f4425c8eba008d1a93b044da63466812;hp=8da36c6c355730b6bd1cddc73a41ca094472140d;hpb=5c3a4660c0ab317f904446bef8cf1bcce439d754;p=openvswitch diff --git a/python/ovs/ovsuuid.py b/python/ovs/ovsuuid.py index 8da36c6c..31c9bccd 100644 --- a/python/ovs/ovsuuid.py +++ b/python/ovs/ovsuuid.py @@ -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]